github-linguist 7.0.0 → 7.1.0

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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/grammars/source.abap.json +51 -25
  3. data/grammars/source.afm.json +22 -14
  4. data/grammars/source.ahk.json +3 -3
  5. data/grammars/source.angelscript.json +2 -2
  6. data/grammars/source.ballerina.json +26 -2
  7. data/grammars/source.clarion.json +6 -6
  8. data/grammars/source.csound.json +1 -1
  9. data/grammars/source.elixir.json +2 -2
  10. data/grammars/source.gfm.json +21 -0
  11. data/grammars/source.haproxy-config.json +100 -0
  12. data/grammars/source.jison.json +1 -1
  13. data/grammars/source.js.css.json +328 -0
  14. data/grammars/source.js.json +1 -1
  15. data/grammars/source.js.jsx.json +1030 -1686
  16. data/grammars/source.julia.json +3 -7
  17. data/grammars/source.kotlin.json +355 -487
  18. data/grammars/source.nim.json +5 -9
  19. data/grammars/source.prolog.json +1 -1
  20. data/grammars/source.python.json +52 -18
  21. data/grammars/source.rascal.json +1 -0
  22. data/grammars/source.ruby.json +28 -28
  23. data/grammars/source.sqf.json +1 -1
  24. data/grammars/source.toml.json +79 -2
  25. data/grammars/source.ts.json +85 -35
  26. data/grammars/source.tsx.json +85 -35
  27. data/grammars/source.yara.json +1 -1
  28. data/grammars/text.eml.basic.json +283 -0
  29. data/grammars/text.html.cshtml.json +356 -0
  30. data/grammars/text.roff.json +1 -1
  31. data/grammars/version +1 -1
  32. data/lib/linguist/VERSION +1 -1
  33. data/lib/linguist/documentation.yml +1 -0
  34. data/lib/linguist/generated.rb +24 -0
  35. data/lib/linguist/heuristics.yml +21 -0
  36. data/lib/linguist/language.rb +7 -0
  37. data/lib/linguist/languages.json +1 -1
  38. data/lib/linguist/languages.yml +61 -13
  39. data/lib/linguist/samples.json +2270 -797
  40. data/lib/linguist/samples.json.orig +175625 -0
  41. metadata +7 -3
  42. data/grammars/source.regexp.babel.json +0 -200
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.0.0
4
+ version: 7.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-01 00:00:00.000000000 Z
11
+ date: 2018-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: charlock_holmes
@@ -375,6 +375,7 @@ files:
375
375
  - grammars/source.graphql.json
376
376
  - grammars/source.groovy.gradle.json
377
377
  - grammars/source.groovy.json
378
+ - grammars/source.haproxy-config.json
378
379
  - grammars/source.harbour.json
379
380
  - grammars/source.haskell.json
380
381
  - grammars/source.hlsl.json
@@ -407,6 +408,7 @@ files:
407
408
  - grammars/source.jisonlex.json
408
409
  - grammars/source.jolie.json
409
410
  - grammars/source.jq.json
411
+ - grammars/source.js.css.json
410
412
  - grammars/source.js.json
411
413
  - grammars/source.js.jsx.json
412
414
  - grammars/source.js.objj.json
@@ -527,7 +529,6 @@ files:
527
529
  - grammars/source.rebol.json
528
530
  - grammars/source.red.json
529
531
  - grammars/source.reg.json
530
- - grammars/source.regexp.babel.json
531
532
  - grammars/source.regexp.extended.json
532
533
  - grammars/source.regexp.json
533
534
  - grammars/source.regexp.perl6fe.json
@@ -614,6 +615,7 @@ files:
614
615
  - grammars/text.bibtex.json
615
616
  - grammars/text.cfml.basic.json
616
617
  - grammars/text.elixir.json
618
+ - grammars/text.eml.basic.json
617
619
  - grammars/text.error-list.json
618
620
  - grammars/text.find-refs.json
619
621
  - grammars/text.gherkin.feature.json
@@ -626,6 +628,7 @@ files:
626
628
  - grammars/text.html.basic.json
627
629
  - grammars/text.html.cfm.json
628
630
  - grammars/text.html.creole.json
631
+ - grammars/text.html.cshtml.json
629
632
  - grammars/text.html.django.json
630
633
  - grammars/text.html.ecr.json
631
634
  - grammars/text.html.elixir.json
@@ -704,6 +707,7 @@ files:
704
707
  - lib/linguist/popular.yml
705
708
  - lib/linguist/repository.rb
706
709
  - lib/linguist/samples.json
710
+ - lib/linguist/samples.json.orig
707
711
  - lib/linguist/samples.rb
708
712
  - lib/linguist/shebang.rb
709
713
  - lib/linguist/strategy/extension.rb
@@ -1,200 +0,0 @@
1
- {
2
- "name": "Regular Expressions (Babel)",
3
- "scopeName": "source.regexp.babel",
4
- "patterns": [
5
- {
6
- "include": "#anchor"
7
- },
8
- {
9
- "include": "#backref"
10
- },
11
- {
12
- "include": "#quantifier"
13
- },
14
- {
15
- "include": "#operator"
16
- },
17
- {
18
- "include": "#group-assertion"
19
- },
20
- {
21
- "include": "#group-definition"
22
- },
23
- {
24
- "include": "#character-class-definition"
25
- },
26
- {
27
- "include": "#character-class"
28
- }
29
- ],
30
- "repository": {
31
- "anchor": {
32
- "patterns": [
33
- {
34
- "name": "keyword.control.anchor.regexp",
35
- "match": "\\\\[bB]|\\^|\\$"
36
- }
37
- ]
38
- },
39
- "backref": {
40
- "patterns": [
41
- {
42
- "name": "keyword.other.back-reference.regexp",
43
- "match": "\\\\[1-9][0-9]*"
44
- }
45
- ]
46
- },
47
- "character-class": {
48
- "patterns": [
49
- {
50
- "name": "constant.character.escape.backslash.regexp",
51
- "match": "\\\\[wWsSdD]"
52
- },
53
- {
54
- "match": "(\\\\([trnvf0\\\\]|c[A-Z]|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u\\{[\\da-fA-F]+\\}|.))",
55
- "captures": {
56
- "1": {
57
- "name": "constant.character.escape.backslash.regexp"
58
- }
59
- }
60
- }
61
- ]
62
- },
63
- "character-class-definition": {
64
- "patterns": [
65
- {
66
- "name": "constant.other.character-class.set.regexp",
67
- "begin": "(\\[)(\\^)?",
68
- "end": "(\\])",
69
- "patterns": [
70
- {
71
- "name": "constant.other.character-class.range.regexp",
72
- "match": "((\\\\[wWsSdD]|\\.)|(\\\\([trnvf0]|c[A-Z]|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u\\{[\\da-fA-F]+\\}|.)|([^\\]\\s])))(\\-)((\\\\[wWsSdD]|\\.)|(\\\\([trnvf0]|c[A-Z]|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u\\{[\\da-fA-F]+\\}|.)|([^\\]\\s])))",
73
- "captures": {
74
- "11": {
75
- "name": "constant.character.regexp"
76
- },
77
- "2": {
78
- "name": "constant.character.escape.backslash.regexp"
79
- },
80
- "3": {
81
- "name": "constant.character.escape.backslash.regexp"
82
- },
83
- "5": {
84
- "name": "constant.character.regexp"
85
- },
86
- "6": {
87
- "name": "punctuation.definition.range.regexp"
88
- },
89
- "8": {
90
- "name": "constant.character.escape.backslash.regexp"
91
- },
92
- "9": {
93
- "name": "constant.character.escape.backslash.regexp"
94
- }
95
- }
96
- },
97
- {
98
- "include": "#character-class"
99
- }
100
- ],
101
- "beginCaptures": {
102
- "1": {
103
- "name": "punctuation.definition.character-class.regexp"
104
- },
105
- "2": {
106
- "name": "keyword.operator.negation.regexp"
107
- }
108
- },
109
- "endCaptures": {
110
- "1": {
111
- "name": "punctuation.definition.character-class.regexp"
112
- }
113
- }
114
- }
115
- ]
116
- },
117
- "group-assertion": {
118
- "patterns": [
119
- {
120
- "name": "meta.group.assertion.regexp",
121
- "begin": "(\\()((\\?=)|(\\?!))",
122
- "end": "(\\))",
123
- "patterns": [
124
- {
125
- "include": "$self"
126
- }
127
- ],
128
- "beginCaptures": {
129
- "1": {
130
- "name": "punctuation.definition.group.regexp"
131
- },
132
- "2": {
133
- "name": "punctuation.definition.group.assertion.regexp"
134
- },
135
- "3": {
136
- "name": "meta.assertion.look-ahead.regexp"
137
- },
138
- "4": {
139
- "name": "meta.assertion.negative-look-ahead.regexp"
140
- }
141
- },
142
- "endCaptures": {
143
- "1": {
144
- "name": "punctuation.definition.group.regexp"
145
- }
146
- }
147
- }
148
- ]
149
- },
150
- "group-definition": {
151
- "patterns": [
152
- {
153
- "name": "meta.group.regexp",
154
- "begin": "(\\()((\\?:))?",
155
- "end": "(\\))",
156
- "patterns": [
157
- {
158
- "include": "$self"
159
- }
160
- ],
161
- "beginCaptures": {
162
- "1": {
163
- "name": "punctuation.definition.group.regexp"
164
- },
165
- "3": {
166
- "name": "punctuation.definition.group.capture.regexp"
167
- },
168
- "5": {
169
- "name": "punctuation.definition.group.capture.regexp"
170
- },
171
- "6": {
172
- "name": "punctuation.definition.group.no-capture.regexp"
173
- }
174
- },
175
- "endCaptures": {
176
- "1": {
177
- "name": "punctuation.definition.group.regexp"
178
- }
179
- }
180
- }
181
- ]
182
- },
183
- "operator": {
184
- "patterns": [
185
- {
186
- "name": "keyword.operator.or.regexp",
187
- "match": "\\|"
188
- }
189
- ]
190
- },
191
- "quantifier": {
192
- "patterns": [
193
- {
194
- "name": "keyword.operator.quantifier.regexp",
195
- "match": "(\\?|\\*\\??|\\+\\??)|\\{(\\d+,\\d+|\\d+,|\\d+)\\}"
196
- }
197
- ]
198
- }
199
- }
200
- }