Skip to content

Test aminya's commit #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: ci

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
Test:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
atom_channel:
- stable
- nightly
steps:
- uses: actions/checkout@v2

- name: Cache
uses: actions/cache@v2
with:
path: |
'node_modules'
'C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140'
key: ${{ runner.os }}-${{ matrix.atom_channel }}-${{ hashFiles('package.json') }}

- uses: UziTech/action-setup-atom@v1
with:
channel: ${{ matrix.atom_channel }}

- name: Install Visual Studio 2015 on Windows
if: ${{ contains(matrix.os, 'windows') }}
run: |
choco install visualcpp-build-tools --version=14.0.25420.1 --ignore-dependencies -y --params "'/IncludeRequired'"
echo ::set-env name=VCTargetsPath::'C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140'

- name: Install dependencies
run: apm install

- name: Run tests
run: apm test
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

31 changes: 4 additions & 27 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
version: "{build}"

image: Visual Studio 2015

platform: x64
build: off

branches:
only:
- master

clone_depth: 10

skip_tags: true

environment:
APM_TEST_PACKAGES:

matrix:
- ATOM_CHANNEL: stable
- ATOM_CHANNEL: beta

install:
- ps: Install-Product node 4

build_script:
- ps: iex ((new-object net.webclient).DownloadString('https://github.com/raw/atom/ci/master/build-package.ps1'))

test: off
deploy: off
only:
- non-existing

56 changes: 28 additions & 28 deletions grammars/javascript.cson
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@
]
}
{
# [.|?.]foo = function...
'begin': '(?=(\\.|\\?\\.)?[a-zA-Z_$][\\w$]*\\s*=\\s*(\\basync\\b\\s*)?\\bfunction\\b)'
# [?].foo = function...
'begin': '(?=(\\?\\.|\\.)?[a-zA-Z_$][\\w$]*\\s*=\\s*(\\basync\\b\\s*)?\\bfunction\\b)'
'end': '(?<=})'
'patterns': [
{
Expand All @@ -303,7 +303,7 @@
'name': 'meta.function.js'
'patterns': [
{
'match': '(\\.|\\?\\.)?([a-zA-Z_$][\\w$]*)\\s*(=)\\s*'
'match': '(\\?\\.|\\.)?([a-zA-Z_$][\\w$]*)\\s*(=)\\s*'
'captures':
'1':
'name': 'meta.delimiter.method.js'
Expand Down Expand Up @@ -539,7 +539,7 @@
# [.|?.]foo = ... => ...
'begin': '''(?x)
(?=
(\\.|\\?\\.)?[a-zA-Z_$][\\w$]*
(\\?\\.|\\.)?[a-zA-Z_$][\\w$]*
\\s*(=)\\s*
((\\(([^\\(\\)]*)?\\))|[\\w$]+)
\\s*=>
Expand All @@ -549,8 +549,8 @@
(?<=})|
((?!
\\s*{|
\\G(\\.|\\?\\.)?[a-zA-Z_$][\\w$]*\\s*(=)\\s*\\(|
\\G(\\.|\\?\\.)?[a-zA-Z_$][\\w$]*\\s*(=)\\s*[\\w$]+|
\\G(\\?\\.|\\.)?[a-zA-Z_$][\\w$]*\\s*(=)\\s*\\(|
\\G(\\?\\.|\\.)?[a-zA-Z_$][\\w$]*\\s*(=)\\s*[\\w$]+|
\\s*/\\*|\\s*//
)(?=\\s*\\S))
'''
Expand All @@ -567,7 +567,7 @@
'name': 'meta.function.arrow.js'
'patterns': [
{
'match': '\\G(\\.|\\?\\.)?([a-zA-Z_$][\\w$]*)\\s*(=)'
'match': '\\G(\\?\\.|\\.)?([a-zA-Z_$][\\w$]*)\\s*(=)'
'captures':
'1':
'name': 'meta.delimiter.method.js'
Expand Down Expand Up @@ -732,7 +732,7 @@
'name': 'entity.name.type.instance.js'
'patterns': [
{
'match': '\\.|\\?\\.'
'match': '\\?\\.|\\.'
'name': 'meta.delimiter.property.js'
}
]
Expand All @@ -746,7 +746,7 @@
'name': 'entity.name.type.object.console.js'
'end': '''(?x)
(?<=\\)) | (?=
(?! (\\s*//)|(\\s*/\\*)|(\\s*(\\.|\\?\\.)\\s*
(?! (\\s*//)|(\\s*/\\*)|(\\s*(\\?\\.|\\.)\\s*
(assert|clear|debug|error|info|log|profile|profileEnd|time|timeEnd|warn)
\\s*\\(
)) \\s*\\S
Expand All @@ -757,7 +757,7 @@
'include': '#comments'
}
{
'begin': '\\s*(\\.|\\?\\.)\\s*(\\w+)\\s*(?=\\()'
'begin': '\\s*(\\?\\.|\\.)\\s*(\\w+)\\s*(?=\\()'
'beginCaptures':
'1':
'name': 'meta.delimiter.method.js'
Expand All @@ -782,7 +782,7 @@
'end': '''(?x)
(?<=E|LN10|LN2|LOG10E|LOG2E|PI|SQRT1_2|SQRT2|\\)
) | (?=
(?! (\\s*//)|(\\s*/\\*)|(\\s*(\\.|\\?\\.)\\s* (
(?! (\\s*//)|(\\s*/\\*)|(\\s*(\\?\\.|\\.)\\s* (
((abs|acos|acosh|asin|asinh|atan|atan2|atanh|cbrt|ceil|clz32|cos|cosh|exp|
expm1|floor|fround|hypot|imul|log|log10|log1p|log2|max|min|pow|random|
round|sign|sin|sinh|sqrt|tan|tanh|trunc)\\s*\\(
Expand All @@ -796,7 +796,7 @@
}
{
# Math.random()
'begin': '\\s*(\\.|\\?\\.)\\s*(\\w+)\\s*(?=\\()'
'begin': '\\s*(\\?\\.|\\.)\\s*(\\w+)\\s*(?=\\()'
'beginCaptures':
'1':
'name': 'meta.delimiter.method.js'
Expand All @@ -812,7 +812,7 @@
}
{
# Math.PI
'match': '\\s*(\\.|\\?\\.)\\s*(\\w+)\\b'
'match': '\\s*(\\?\\.|\\.)\\s*(\\w+)\\b'
'captures':
'1':
'name': 'meta.delimiter.property.js'
Expand All @@ -829,7 +829,7 @@
'name': 'support.class.promise.js'
'end': '''(?x)
(?<=\\)) | (?=
(?! (\\s*//)|(\\s*/\\*)|(\\s*(\\.|\\?\\.)\\s*(all|race|reject|resolve)\\s*\\() )\\s*\\S
(?! (\\s*//)|(\\s*/\\*)|(\\s*(\\?\\.|\\.)\\s*(all|race|reject|resolve)\\s*\\() )\\s*\\S
)
'''
'patterns': [
Expand All @@ -838,7 +838,7 @@
}
{
# Promise.all()
'begin': '\\s*(\\.|\\?\\.)\\s*(\\w+)\\s*(?=\\()'
'begin': '\\s*(\\?\\.|\\.)\\s*(\\w+)\\s*(?=\\()'
'beginCaptures':
'1':
'name': 'meta.delimiter.method.js'
Expand Down Expand Up @@ -986,7 +986,7 @@
'name': 'support.class.js'
}
{
'match': '''(?x) (\\.|\\?\\.) \\s* (?:
'match': '''(?x) (\\?\\.|\\.) \\s* (?:
(constructor|length|prototype) |
(EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY)
)\\b
Expand All @@ -1001,7 +1001,7 @@
}
{
'match': '''(?x) (?<!\\$) \\b (?:
(document|event|navigator|performance|screen|window)
(document|event|navigator|performance|screen|window|globalThis)
|
(AnalyserNode|ArrayBufferView|Attr|AudioBuffer|AudioBufferSourceNode|AudioContext|AudioDestinationNode|AudioListener
|AudioNode|AudioParam|BatteryManager|BeforeUnloadEvent|BiquadFilterNode|Blob|BufferSource|ByteString|CSS|CSSConditionRule
Expand Down Expand Up @@ -1071,7 +1071,7 @@
'name': 'support.class.dom.js'
}
{
'match': '''(?x) (\\.|\\?\\.) \\s*
'match': '''(?x) (\\?\\.|\\.) \\s*
(?:
(ATTRIBUTE_NODE|CDATA_SECTION_NODE|COMMENT_NODE|DOCUMENT_FRAGMENT_NODE|DOCUMENT_NODE|DOCUMENT_TYPE_NODE
|DOMSTRING_SIZE_ERR|ELEMENT_NODE|ENTITY_NODE|ENTITY_REFERENCE_NODE|HIERARCHY_REQUEST_ERR|INDEX_SIZE_ERR
Expand Down Expand Up @@ -1142,7 +1142,7 @@
]
}
{
'begin': '\\?'
'begin': '(?<!\\?)\\?(?!\\.|\\?)'
'beginCaptures':
'0':
'name': 'keyword.operator.ternary.js'
Expand Down Expand Up @@ -1195,7 +1195,7 @@
}
{
# Optional chaining operator
'match': '\\.|\\?\\.'
'match': '\\?\\.|\\.'
'name': 'meta.delimiter.method.js'
}
{
Expand Down Expand Up @@ -1645,7 +1645,7 @@
'patterns': [
{
# [?].methodCall(arg1, "arg2", [...])
'begin': '(\\.|\\?\\.)\\s*([\\w$]+)\\s*(?=\\()'
'begin': '(\\?\\.|\\.)\\s*([\\w$]+)\\s*(?=\\()'
'beginCaptures':
'1':
'name': 'meta.delimiter.method.js'
Expand Down Expand Up @@ -1791,12 +1791,12 @@
'patterns': [
{
# OBJ in OBJ.prop, OBJ.methodCall()
'match': '[A-Z][A-Z0-9_$]*(?=\\s*(\\.|\\?\\.)\\s*[a-zA-Z_$]\\w*)'
'match': '[A-Z][A-Z0-9_$]*(?=\\s*(\\?\\.|\\.)\\s*[a-zA-Z_$]\\w*)'
'name': 'constant.other.object.js'
}
{
# obj in obj.prop, obj.methodCall()
'match': '[a-zA-Z_$][\\w$]*(?=\\s*(\\.|\\?\\.)\\s*[a-zA-Z_$]\\w*)'
'match': '[a-zA-Z_$][\\w$]*(?=\\s*(\\?\\.|\\.)\\s*[a-zA-Z_$]\\w*)'
'name': 'variable.other.object.js'
}
]
Expand All @@ -1805,7 +1805,7 @@
# object.prop means (object.prop OR object?.prop) in this square bracket
{
# PROP1 in obj.PROP1.prop2, func().PROP1.prop2
'match': '(\\.|\\?\\.)\\s*([A-Z][A-Z0-9_$]*\\b\\$*)(?=\\s*(\\.|\\?\\.)\\s*[a-zA-Z_$]\\w*)'
'match': '(\\?\\.|\\.)\\s*([A-Z][A-Z0-9_$]*\\b\\$*)(?=\\s*(\\?\\.|\\.)\\s*[a-zA-Z_$]\\w*)'
'captures':
'1':
'name': 'meta.delimiter.property.js'
Expand All @@ -1814,7 +1814,7 @@
}
{
# prop1 in obj.prop1.prop2, func().prop1.prop2
'match': '(\\.|\\?\\.)\\s*(\\$*[a-zA-Z_$][\\w$]*)(?=\\s*(\\.|\\?\\.)\\s*[a-zA-Z_$]\\w*)'
'match': '(\\?\\.|\\.)\\s*(\\$*[a-zA-Z_$][\\w$]*)(?=\\s*(\\?\\.|\\.)\\s*[a-zA-Z_$]\\w*)'
'captures':
'1':
'name': 'meta.delimiter.property.js'
Expand All @@ -1823,7 +1823,7 @@
}
{
# PROP in obj.PROP, func().PROP
'match': '(\\.|\\?\\.)\\s*([A-Z][A-Z0-9_$]*\\b\\$*)'
'match': '(\\?\\.|\\.)\\s*([A-Z][A-Z0-9_$]*\\b\\$*)'
'captures':
'1':
'name': 'meta.delimiter.property.js'
Expand All @@ -1832,7 +1832,7 @@
}
{
# prop in obj.prop, func().prop
'match': '(\\.|\\?\\.)\\s*(\\$*[a-zA-Z_$][\\w$]*)'
'match': '(\\?\\.|\\.)\\s*(\\$*[a-zA-Z_$][\\w$]*)'
'captures':
'1':
'name': 'meta.delimiter.property.js'
Expand All @@ -1841,7 +1841,7 @@
}
{
# 123illegal in obj.123illegal, func().123illegal
'match': '(\\.|\\?\\.)\\s*([0-9][\\w$]*)'
'match': '(\\?\\.|\\.)\\s*([0-9][\\w$]*)'
'captures':
'1':
'name': 'meta.delimiter.property.js'
Expand Down
Loading