github-linguist-grammars 4.6.0 → 4.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/grammars/source.js.json +43 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 189fce72c6a7d20c4612372ab22d3a877d7754f7
4
- data.tar.gz: f180c019afd9b85b640492f2f90d8ab8fa605e4a
3
+ metadata.gz: c2a5fba5247fc8b7ca231f3f51c4facd573fe01f
4
+ data.tar.gz: 2d69172f5c24879a17202080ce1b491631f9107b
5
5
  SHA512:
6
- metadata.gz: 5cc25da9b102c377506f7d6025ebe233a6b4cec5492141d82fe7809107749cb17098ab5332cfcfd3da5e96cc44b9c7c7adfb6dcf42b3b042e52de6f923cc05c3
7
- data.tar.gz: d255a8edf55fc2b310290e15db605c11338ceb30f6fcf00c2cd1b7c6ac410bb720a4e4ffb297a333bee94930cf79e4ecc0c07414f307f30714754c0a9793949b
6
+ metadata.gz: fce39962fd2bd15bc0d5d07ef14d8f85d689e5fd05bbccaa2b4c909d03bd706ef906e8b9a3e8e05164bbe0face3b8b16f9a66ab61a3f767ae82d1ca3ad93ce78
7
+ data.tar.gz: 0993c95937ad9d2658fc8f974b4f350b5cec2b721a16614a39b86e341e749a0dd073409d323e3d2d58c6b013e0e0fc70cf7f3ffa43c98939bfedf714108e69bd
@@ -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": "\\.(warn|info|log|error|time|timeEnd|assert)\\b",
465
- "name": "support.function.js.console"
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": "(?<=[\\[=(:+,!]|^|return|&&|\\|\\|)\\s*(/)(?![/*+{}?])(?=.*/)",
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.0
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-15 00:00:00.000000000 Z
11
+ date: 2015-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: plist