github-linguist-grammars 4.6.0 → 4.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/grammars/source.js.json +43 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c2a5fba5247fc8b7ca231f3f51c4facd573fe01f
|
|
4
|
+
data.tar.gz: 2d69172f5c24879a17202080ce1b491631f9107b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fce39962fd2bd15bc0d5d07ef14d8f85d689e5fd05bbccaa2b4c909d03bd706ef906e8b9a3e8e05164bbe0face3b8b16f9a66ab61a3f767ae82d1ca3ad93ce78
|
|
7
|
+
data.tar.gz: 0993c95937ad9d2658fc8f974b4f350b5cec2b721a16614a39b86e341e749a0dd073409d323e3d2d58c6b013e0e0fc70cf7f3ffa43c98939bfedf714108e69bd
|
data/grammars/source.js.json
CHANGED
|
@@ -444,6 +444,39 @@
|
|
|
444
444
|
}
|
|
445
445
|
]
|
|
446
446
|
},
|
|
447
|
+
{
|
|
448
|
+
"comment": "match stuff like: Sound.play = (a,b) => { … }",
|
|
449
|
+
"name": "meta.function.arrow.js",
|
|
450
|
+
"begin": "([a-zA-Z_?$]*)\\.([a-zA-Z_?$][\\w?$]*)\\s*(=)\\s*(\\()(?=(?:[^\\(\\)]*)?\\)\\s*=>)",
|
|
451
|
+
"beginCaptures": {
|
|
452
|
+
"1": {
|
|
453
|
+
"name": "support.class.js"
|
|
454
|
+
},
|
|
455
|
+
"2": {
|
|
456
|
+
"name": "entity.name.function.js"
|
|
457
|
+
},
|
|
458
|
+
"3": {
|
|
459
|
+
"name": "keyword.operator.js"
|
|
460
|
+
},
|
|
461
|
+
"4": {
|
|
462
|
+
"name": "punctuation.definition.parameters.begin.js"
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
"end": "(\\))(\\s*=>)",
|
|
466
|
+
"endCaptures": {
|
|
467
|
+
"1": {
|
|
468
|
+
"name": "punctuation.definition.parameters.end.js"
|
|
469
|
+
},
|
|
470
|
+
"2": {
|
|
471
|
+
"name": "storage.type.arrow.js"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"patterns": [
|
|
475
|
+
{
|
|
476
|
+
"include": "#function-params"
|
|
477
|
+
}
|
|
478
|
+
]
|
|
479
|
+
},
|
|
447
480
|
{
|
|
448
481
|
"captures": {
|
|
449
482
|
"1": {
|
|
@@ -461,8 +494,15 @@
|
|
|
461
494
|
"name": "entity.name.type.object.js.console"
|
|
462
495
|
},
|
|
463
496
|
{
|
|
464
|
-
"match": "\\.(
|
|
465
|
-
"
|
|
497
|
+
"match": "\\b(\\.)(assert|clear|debug|error|info|log|profile|profileEnd|time|timeEnd|warn)(?=\\()",
|
|
498
|
+
"captures": {
|
|
499
|
+
"1": {
|
|
500
|
+
"name": "meta.delimiter.method.period.js"
|
|
501
|
+
},
|
|
502
|
+
"2": {
|
|
503
|
+
"name": "support.function.js.console"
|
|
504
|
+
}
|
|
505
|
+
}
|
|
466
506
|
},
|
|
467
507
|
{
|
|
468
508
|
"include": "#numbers"
|
|
@@ -647,7 +687,7 @@
|
|
|
647
687
|
"name": "constant.language.js"
|
|
648
688
|
},
|
|
649
689
|
{
|
|
650
|
-
"begin": "(?<=[\\[=(
|
|
690
|
+
"begin": "(?<=[\\[=(?:+,!]|^|return|&&|\\|\\|)\\s*(/)(?![/*+{}?])(?=.*/)",
|
|
651
691
|
"beginCaptures": {
|
|
652
692
|
"1": {
|
|
653
693
|
"name": "punctuation.definition.string.begin.js"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: github-linguist-grammars
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.6.
|
|
4
|
+
version: 4.6.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GitHub
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-09-
|
|
11
|
+
date: 2015-09-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: plist
|