github-linguist 7.5.0 → 7.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grammars/source.rascal.json +0 -1
- data/grammars/source.scala.json +10 -110
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- 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: 681599dd6960c2671b64dacbd1c6fac0ab936466
|
4
|
+
data.tar.gz: 5ece6a23e7f30b785ddf1aaab971dcda7bcda556
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6114fa52153abca2dec7979a8b289447b46beacd5a5d4ff03414ec85cd550afddd1d5b9265deecb743bfad069bae1b3f9287fba4ea498c6ca6418ae4807dc93e
|
7
|
+
data.tar.gz: cbf68f2ce72cbe773ce975de37d2cabf314ca0903b60082a66151271a28d041464bedf3e6c54db1020ee52df3832130af138775e356b377c2883add0784dc8c2
|
data/grammars/source.rascal.json
CHANGED
data/grammars/source.scala.json
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
"include": "#block-comments"
|
17
17
|
},
|
18
18
|
{
|
19
|
-
"match": "(?x)(?! /\\*)(?! \\*/)"
|
19
|
+
"match": "(?x)\n\t\t\t(?! /\\*)\n\t\t\t(?! \\*/)\n\t\t "
|
20
20
|
}
|
21
21
|
]
|
22
22
|
},
|
@@ -248,7 +248,7 @@
|
|
248
248
|
"declarations": {
|
249
249
|
"patterns": [
|
250
250
|
{
|
251
|
-
"match": "(?x)\\b(def)\\s
|
251
|
+
"match": "(?x)\n\t\t\t\t\t\t\\b(def)\\s+\n\t\t\t\t\t\t(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\\t .,;()\\[\\]{}'\"`\\w])(?=[(\\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~\u003e\u003c^+*%:!#|/@\\\\]+)",
|
252
252
|
"captures": {
|
253
253
|
"1": {
|
254
254
|
"name": "keyword.declaration.scala"
|
@@ -284,7 +284,7 @@
|
|
284
284
|
}
|
285
285
|
},
|
286
286
|
{
|
287
|
-
"match": "\\b(type)\\s+(`[^`]+`|
|
287
|
+
"match": "\\b(type)\\s+(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\\s])(?=[\\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~\u003e\u003c^+*%:!#|/@\\\\]+)",
|
288
288
|
"captures": {
|
289
289
|
"1": {
|
290
290
|
"name": "keyword.declaration.scala"
|
@@ -295,7 +295,7 @@
|
|
295
295
|
}
|
296
296
|
},
|
297
297
|
{
|
298
|
-
"match": "\\b(val)\\s+(
|
298
|
+
"match": "\\b(val)\\s+(?:([A-Z][_a-zA-Z0-9]*))\\b",
|
299
299
|
"captures": {
|
300
300
|
"1": {
|
301
301
|
"name": "keyword.declaration.stable.scala"
|
@@ -306,7 +306,7 @@
|
|
306
306
|
}
|
307
307
|
},
|
308
308
|
{
|
309
|
-
"match": "\\b(?:(val)|(var))\\s+(?:(`[^`]+`|
|
309
|
+
"match": "\\b(?:(val)|(var))\\s+(?:(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\\t .,;()\\[\\]{}'\"`\\w])(?=[\\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[-?~\u003e\u003c^+*%:!#|/@\\\\]+)|(?=\\())",
|
310
310
|
"captures": {
|
311
311
|
"1": {
|
312
312
|
"name": "keyword.declaration.stable.scala"
|
@@ -343,7 +343,7 @@
|
|
343
343
|
},
|
344
344
|
{
|
345
345
|
"name": "entity.name.package.scala",
|
346
|
-
"match": "(`[^`]+`|
|
346
|
+
"match": "(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*)"
|
347
347
|
},
|
348
348
|
{
|
349
349
|
"name": "punctuation.definition.package",
|
@@ -377,7 +377,7 @@
|
|
377
377
|
},
|
378
378
|
{
|
379
379
|
"name": "entity.name.import.scala",
|
380
|
-
"match": "(`[^`]+`|
|
380
|
+
"match": "(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*)"
|
381
381
|
},
|
382
382
|
{
|
383
383
|
"name": "punctuation.definition.import",
|
@@ -389,7 +389,7 @@
|
|
389
389
|
"end": "}",
|
390
390
|
"patterns": [
|
391
391
|
{
|
392
|
-
"match": "(?x)\\s
|
392
|
+
"match": "(?x) \\s*\n\t\t\t\t (`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*) \\s*\n\t\t\t\t (=\u003e) \\s*\n\t\t\t\t (`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*) \\s*\n\t\t\t ",
|
393
393
|
"captures": {
|
394
394
|
"1": {
|
395
395
|
"name": "entity.name.import.renamed-from.scala"
|
@@ -518,7 +518,7 @@
|
|
518
518
|
"parameter-list": {
|
519
519
|
"patterns": [
|
520
520
|
{
|
521
|
-
"match": "(?\u003c=[^\\._$a-zA-Z0-9])(`[^`]+`|[
|
521
|
+
"match": "(?\u003c=[^\\._$a-zA-Z0-9])(`[^`]+`|[_$a-z][_$a-zA-Z0-9]*(?:_[^\\s])(?=[\\t ])|[_$a-z][_$a-zA-Z0-9]*|[-?~\u003e\u003c^+*%:!#|/@\\\\]+)\\s*(:)\\s+",
|
522
522
|
"captures": {
|
523
523
|
"1": {
|
524
524
|
"name": "variable.parameter.scala"
|
@@ -544,7 +544,7 @@
|
|
544
544
|
},
|
545
545
|
"scala-symbol": {
|
546
546
|
"name": "constant.other.symbol.scala",
|
547
|
-
"match": "
|
547
|
+
"match": "'\\w+(?=[^'\\w]|$)"
|
548
548
|
},
|
549
549
|
"script-header": {
|
550
550
|
"name": "comment.block.shebang.scala",
|
@@ -570,42 +570,6 @@
|
|
570
570
|
}
|
571
571
|
]
|
572
572
|
},
|
573
|
-
"string-interpolation": {
|
574
|
-
"patterns": [
|
575
|
-
{
|
576
|
-
"name": "constant.character.escape.interpolation.scala",
|
577
|
-
"match": "\\$\\$"
|
578
|
-
},
|
579
|
-
{
|
580
|
-
"match": "(\\$)([[A-Z\\p{Lt}\\p{Lu}][_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}]](?:[[A-Z\\p{Lt}\\p{Lu}][_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}]]|[0-9])*)",
|
581
|
-
"captures": {
|
582
|
-
"1": {
|
583
|
-
"name": "punctuation.definition.template-expression.begin.scala"
|
584
|
-
}
|
585
|
-
}
|
586
|
-
},
|
587
|
-
{
|
588
|
-
"name": "punctuation.definition.template-expression.scala",
|
589
|
-
"begin": "\\$\\{",
|
590
|
-
"end": "\\}",
|
591
|
-
"patterns": [
|
592
|
-
{
|
593
|
-
"include": "#code"
|
594
|
-
}
|
595
|
-
],
|
596
|
-
"beginCaptures": {
|
597
|
-
"0": {
|
598
|
-
"name": "punctuation.definition.template-expression.begin.scala"
|
599
|
-
}
|
600
|
-
},
|
601
|
-
"endCaptures": {
|
602
|
-
"0": {
|
603
|
-
"name": "punctuation.definition.template-expression.end.scala"
|
604
|
-
}
|
605
|
-
}
|
606
|
-
}
|
607
|
-
]
|
608
|
-
},
|
609
573
|
"strings": {
|
610
574
|
"patterns": [
|
611
575
|
{
|
@@ -629,36 +593,6 @@
|
|
629
593
|
}
|
630
594
|
}
|
631
595
|
},
|
632
|
-
{
|
633
|
-
"begin": "\\b([[A-Z\\p{Lt}\\p{Lu}][_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}]]+)(\"\"\")",
|
634
|
-
"end": "\"\"\"(?!\")",
|
635
|
-
"patterns": [
|
636
|
-
{
|
637
|
-
"include": "#string-interpolation"
|
638
|
-
},
|
639
|
-
{
|
640
|
-
"name": "constant.character.escape.scala",
|
641
|
-
"match": "\\\\\\\\|\\\\u[0-9A-Fa-f]{4}"
|
642
|
-
},
|
643
|
-
{
|
644
|
-
"name": "string.quoted.triple.interpolated.scala",
|
645
|
-
"match": "."
|
646
|
-
}
|
647
|
-
],
|
648
|
-
"beginCaptures": {
|
649
|
-
"1": {
|
650
|
-
"name": "keyword.interpolation.scala"
|
651
|
-
},
|
652
|
-
"2": {
|
653
|
-
"name": "string.quoted.triple.interpolated.scala punctuation.definition.string.begin.scala"
|
654
|
-
}
|
655
|
-
},
|
656
|
-
"endCaptures": {
|
657
|
-
"0": {
|
658
|
-
"name": "string.quoted.triple.interpolated.scala punctuation.definition.string.end.scala"
|
659
|
-
}
|
660
|
-
}
|
661
|
-
},
|
662
596
|
{
|
663
597
|
"name": "string.quoted.double.scala",
|
664
598
|
"begin": "\"",
|
@@ -683,40 +617,6 @@
|
|
683
617
|
"name": "punctuation.definition.string.end.scala"
|
684
618
|
}
|
685
619
|
}
|
686
|
-
},
|
687
|
-
{
|
688
|
-
"begin": "\\b([[A-Z\\p{Lt}\\p{Lu}][_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}]]+)(\")",
|
689
|
-
"end": "\"",
|
690
|
-
"patterns": [
|
691
|
-
{
|
692
|
-
"include": "#string-interpolation"
|
693
|
-
},
|
694
|
-
{
|
695
|
-
"name": "constant.character.escape.scala",
|
696
|
-
"match": "\\\\(?:[btnfr\\\\\"']|[0-7]{1,3}|u[0-9A-Fa-f]{4})"
|
697
|
-
},
|
698
|
-
{
|
699
|
-
"name": "invalid.illegal.unrecognized-string-escape.scala",
|
700
|
-
"match": "\\\\."
|
701
|
-
},
|
702
|
-
{
|
703
|
-
"name": "string.quoted.double.interpolated.scala",
|
704
|
-
"match": "."
|
705
|
-
}
|
706
|
-
],
|
707
|
-
"beginCaptures": {
|
708
|
-
"1": {
|
709
|
-
"name": "keyword.interpolation.scala"
|
710
|
-
},
|
711
|
-
"2": {
|
712
|
-
"name": "string.quoted.double.interpolated.scala punctuation.definition.string.begin.scala"
|
713
|
-
}
|
714
|
-
},
|
715
|
-
"endCaptures": {
|
716
|
-
"0": {
|
717
|
-
"name": "string.quoted.double.interpolated.scala punctuation.definition.string.end.scala"
|
718
|
-
}
|
719
|
-
}
|
720
620
|
}
|
721
621
|
]
|
722
622
|
},
|
data/grammars/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.5.
|
1
|
+
7.5.1
|
data/lib/linguist/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.5.
|
1
|
+
7.5.1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-linguist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.5.
|
4
|
+
version: 7.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: charlock_holmes
|