github-linguist 5.0.0 → 5.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/git-linguist +10 -2
- data/bin/linguist +26 -9
- data/grammars/config.xcompose.json +83 -0
- data/grammars/hint.haskell.json +21 -30
- data/grammars/hint.message.haskell.json +21 -30
- data/grammars/hint.type.haskell.json +21 -30
- data/grammars/source.bsl.json +42 -28
- data/grammars/source.cs.json +656 -131
- data/grammars/source.csound-document.json +142 -25
- data/grammars/source.csound-score.json +13 -10
- data/grammars/source.csound.json +136 -81
- data/grammars/source.css.json +1501 -331
- data/grammars/source.css.less.json +3 -3
- data/grammars/source.d.json +60 -44
- data/grammars/source.gn.json +240 -138
- data/grammars/source.graphql.json +781 -155
- data/grammars/source.haskell.json +21 -30
- data/grammars/source.js.json +46 -46
- data/grammars/source.mask.json +1 -1
- data/grammars/source.perl6fe.json +1151 -763
- data/grammars/source.python.json +45 -23
- data/grammars/source.quoting.perl6fe.json +2170 -0
- data/grammars/source.reason.json +296 -0
- data/grammars/source.regexp.perl6fe.json +27 -0
- data/grammars/source.rust.json +522 -125
- data/grammars/source.sdbl.json +2 -2
- data/grammars/source.shell.json +125 -161
- data/grammars/source.solidity.json +137 -0
- data/grammars/source.ts.json +385 -137
- data/grammars/source.tsx.json +394 -167
- data/grammars/source.yaml.json +176 -171
- data/grammars/text.html.php.blade.json +2 -2
- data/grammars/text.tex.latex.haskell.json +1 -10
- data/lib/linguist/generated.rb +50 -4
- data/lib/linguist/heuristics.rb +1 -1
- data/lib/linguist/language.rb +12 -8
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +38 -1
- data/lib/linguist/samples.json +4605 -581
- data/lib/linguist/vendor.yml +6 -0
- data/lib/linguist/version.rb +1 -1
- metadata +10 -7
- data/grammars/source.hy.json +0 -270
data/lib/linguist/vendor.yml
CHANGED
data/lib/linguist/version.rb
CHANGED
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: 5.0.
|
4
|
+
version: 5.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: charlock_holmes
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: rugged
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.25.0b10
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.25.0b10
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: minitest
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -205,6 +205,7 @@ files:
|
|
205
205
|
- LICENSE
|
206
206
|
- bin/git-linguist
|
207
207
|
- bin/linguist
|
208
|
+
- grammars/config.xcompose.json
|
208
209
|
- grammars/file.lasso.json
|
209
210
|
- grammars/hint.haskell.json
|
210
211
|
- grammars/hint.message.haskell.json
|
@@ -343,7 +344,6 @@ files:
|
|
343
344
|
- grammars/source.hss.1.json
|
344
345
|
- grammars/source.httpspec.json
|
345
346
|
- grammars/source.hxml.json
|
346
|
-
- grammars/source.hy.json
|
347
347
|
- grammars/source.ideal.json
|
348
348
|
- grammars/source.idl-dlm.json
|
349
349
|
- grammars/source.idl.json
|
@@ -457,9 +457,11 @@ files:
|
|
457
457
|
- grammars/source.python.salt.json
|
458
458
|
- grammars/source.qmake.json
|
459
459
|
- grammars/source.qml.json
|
460
|
+
- grammars/source.quoting.perl6fe.json
|
460
461
|
- grammars/source.r.json
|
461
462
|
- grammars/source.racket.json
|
462
463
|
- grammars/source.rascal.json
|
464
|
+
- grammars/source.reason.json
|
463
465
|
- grammars/source.rebol.json
|
464
466
|
- grammars/source.red.json
|
465
467
|
- grammars/source.regexp.babel.json
|
@@ -485,6 +487,7 @@ files:
|
|
485
487
|
- grammars/source.smali.json
|
486
488
|
- grammars/source.smalltalk.json
|
487
489
|
- grammars/source.smt.json
|
490
|
+
- grammars/source.solidity.json
|
488
491
|
- grammars/source.sp.json
|
489
492
|
- grammars/source.sparql.json
|
490
493
|
- grammars/source.spin.json
|
data/grammars/source.hy.json
DELETED
@@ -1,270 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"scopeName": "source.hy",
|
3
|
-
"fileTypes": [
|
4
|
-
"hy"
|
5
|
-
],
|
6
|
-
"foldingStartMarker": "\\(\\s*$",
|
7
|
-
"foldingStopMarker": "^\\s*\\)",
|
8
|
-
"name": "Hy",
|
9
|
-
"patterns": [
|
10
|
-
{
|
11
|
-
"include": "#comment"
|
12
|
-
},
|
13
|
-
{
|
14
|
-
"include": "#shebang-comment"
|
15
|
-
},
|
16
|
-
{
|
17
|
-
"include": "#quoted-sexp"
|
18
|
-
},
|
19
|
-
{
|
20
|
-
"include": "#sexp"
|
21
|
-
},
|
22
|
-
{
|
23
|
-
"include": "#keyfn"
|
24
|
-
},
|
25
|
-
{
|
26
|
-
"include": "#string"
|
27
|
-
},
|
28
|
-
{
|
29
|
-
"include": "#list"
|
30
|
-
},
|
31
|
-
{
|
32
|
-
"include": "#set"
|
33
|
-
},
|
34
|
-
{
|
35
|
-
"include": "#dict"
|
36
|
-
},
|
37
|
-
{
|
38
|
-
"include": "#regexp"
|
39
|
-
},
|
40
|
-
{
|
41
|
-
"include": "#var"
|
42
|
-
},
|
43
|
-
{
|
44
|
-
"include": "#constants"
|
45
|
-
},
|
46
|
-
{
|
47
|
-
"include": "#symbol"
|
48
|
-
},
|
49
|
-
{
|
50
|
-
"include": "#whitespace"
|
51
|
-
}
|
52
|
-
],
|
53
|
-
"repository": {
|
54
|
-
"comment": {
|
55
|
-
"captures": {
|
56
|
-
"1": {
|
57
|
-
"name": "punctuation.definition.comment.hy"
|
58
|
-
}
|
59
|
-
},
|
60
|
-
"match": "(;).*$\\n?",
|
61
|
-
"name": "comment.line.semicolon.hy"
|
62
|
-
},
|
63
|
-
"constants": {
|
64
|
-
"patterns": [
|
65
|
-
{
|
66
|
-
"match": "(None|nil|null)(?=(\\s|\\)|\\]|\\}))",
|
67
|
-
"name": "constant.language.nil.hy"
|
68
|
-
},
|
69
|
-
{
|
70
|
-
"match": "(true|false)",
|
71
|
-
"name": "constant.language.boolean.hy"
|
72
|
-
},
|
73
|
-
{
|
74
|
-
"match": "(\\d+/\\d+)",
|
75
|
-
"name": "constant.numeric.ratio.hy"
|
76
|
-
},
|
77
|
-
{
|
78
|
-
"match": "(\\d+r\\d+)",
|
79
|
-
"name": "constant.numeric.arbitrary-radix.hy"
|
80
|
-
},
|
81
|
-
{
|
82
|
-
"match": "(0x\\d+)",
|
83
|
-
"name": "constant.numeric.hexidecimal.hy"
|
84
|
-
},
|
85
|
-
{
|
86
|
-
"match": "(0\\d+)",
|
87
|
-
"name": "constant.numeric.octal.hy"
|
88
|
-
},
|
89
|
-
{
|
90
|
-
"match": "(\\d+)",
|
91
|
-
"name": "constant.numeric.decimal.hy"
|
92
|
-
},
|
93
|
-
{
|
94
|
-
"match": "(?<=(\\s|\\(|\\[|\\{)):[a-zA-Z0-9\\#\\.\\-\\_\\:\\+\\=\\>\\<\\/\\!\\?\\*]+(?=(\\s|\\)|\\]|\\}))",
|
95
|
-
"name": "constant.keyword.hy"
|
96
|
-
}
|
97
|
-
]
|
98
|
-
},
|
99
|
-
"keyfn": {
|
100
|
-
"patterns": [
|
101
|
-
{
|
102
|
-
"match": "(?<=(\\s|\\(|\\[|\\{))(if(-[-a-z\\?]*)?|if-not(-[-a-z\\?]*)?|when(-[-a-z]*)?|for(-[-a-z]*)?|for\\*(-[-a-z]*)?|unless(-[-a-z]*)?|with(-[-a-z]*)?|with-decorator(-[-a-z]*)?|with-gensyms(-[-a-z]*)?|cond|do|doto|progn|continue|break|yield|yield-from|let(-[-a-z\\?]*)?|loop|recur|raise[a-z\\-]*|throw[a-z\\-]*|try|catch|finally|([a-z]*case))(?=(\\s|\\)|\\]|\\}))",
|
103
|
-
"name": "storage.control.hy"
|
104
|
-
},
|
105
|
-
{
|
106
|
-
"match": "(?<=(\\s|\\(|\\[|\\{))(import|require|setv|print|get|global|and|or|not|genexpr|list|list-comp|set-comp|slice|partition|lambda|fn|(def[a-z\\-]*))(?=(\\s|\\)|\\]|\\}))",
|
107
|
-
"name": "keyword.control.hy"
|
108
|
-
},
|
109
|
-
{
|
110
|
-
"match": "(?<=(\\s|\\(|\\[|\\{))(butlast|coll\\?|cons|cons\\?|keyword\\?|dec|disassemble|distinct|filterfalse|zip-longest|filter|map|zip|range|input|reduce|cycle|repeat|drop-while|take-while|zipwith|remove|drop|drop-last|empty\\?|even\\?|every\\?|fake-source-positions|flatten|float\\?|gensym|calling-module-name|first|identity|inc|instance\\?|integer|integer\\?|integer-char\\?|interleave|interpose|iterable\\?|iterate|iterator\\?|list\\*|macroexpand|macroexpand-1|merge-with|neg\\?|none\\?|nil\\?|numeric\\?|nth|odd\\?|pos\\?|rest|repeatedly|second|some|string|string\\?|take|take-nth|zero\\?|read|hyify|keyword|name|fraction|last|read-str|symbol)(?=(\\s|\\)|\\]|\\}))",
|
111
|
-
"name": "keyword.other.hy"
|
112
|
-
}
|
113
|
-
]
|
114
|
-
},
|
115
|
-
"dict": {
|
116
|
-
"begin": "(\\{)",
|
117
|
-
"end": "(\\})",
|
118
|
-
"name": "meta.dict.hy",
|
119
|
-
"patterns": [
|
120
|
-
{
|
121
|
-
"include": "$self"
|
122
|
-
}
|
123
|
-
]
|
124
|
-
},
|
125
|
-
"quoted-sexp": {
|
126
|
-
"begin": "(['``]\\()",
|
127
|
-
"beginCaptures": {
|
128
|
-
"1": {
|
129
|
-
"name": "punctuation.section.expression.begin.hy"
|
130
|
-
}
|
131
|
-
},
|
132
|
-
"end": "(\\))(\\n)?",
|
133
|
-
"endCaptures": {
|
134
|
-
"1": {
|
135
|
-
"name": "punctuation.section.expression.end.hy"
|
136
|
-
},
|
137
|
-
"2": {
|
138
|
-
"name": "meta.after-expression.hy"
|
139
|
-
}
|
140
|
-
},
|
141
|
-
"name": "meta.quoted-expression.hy",
|
142
|
-
"patterns": [
|
143
|
-
{
|
144
|
-
"include": "$self"
|
145
|
-
}
|
146
|
-
]
|
147
|
-
},
|
148
|
-
"regexp": {
|
149
|
-
"begin": "#\\\"",
|
150
|
-
"end": "\\\"",
|
151
|
-
"name": "string.regexp.hy",
|
152
|
-
"patterns": [
|
153
|
-
{
|
154
|
-
"include": "#regexp_escaped_char"
|
155
|
-
}
|
156
|
-
]
|
157
|
-
},
|
158
|
-
"regexp_escaped_char": {
|
159
|
-
"match": "\\\\(\\\")",
|
160
|
-
"name": "string.regexp.hy"
|
161
|
-
},
|
162
|
-
"set": {
|
163
|
-
"begin": "(\\#\\{)",
|
164
|
-
"end": "(\\})",
|
165
|
-
"name": "meta.set.hy",
|
166
|
-
"patterns": [
|
167
|
-
{
|
168
|
-
"include": "$self"
|
169
|
-
}
|
170
|
-
]
|
171
|
-
},
|
172
|
-
"sexp": {
|
173
|
-
"begin": "(\\()",
|
174
|
-
"beginCaptures": {
|
175
|
-
"1": {
|
176
|
-
"name": "punctuation.section.expression.begin.hy"
|
177
|
-
}
|
178
|
-
},
|
179
|
-
"end": "(\\))(\\n)?",
|
180
|
-
"endCaptures": {
|
181
|
-
"1": {
|
182
|
-
"name": "punctuation.section.expression.end.hy"
|
183
|
-
},
|
184
|
-
"2": {
|
185
|
-
"name": "meta.after-expression.hy"
|
186
|
-
}
|
187
|
-
},
|
188
|
-
"name": "meta.expression.hy",
|
189
|
-
"patterns": [
|
190
|
-
{
|
191
|
-
"begin": "(?<=\\()(ns|def|def-|defn|defn-|defvar|defvar-|defmacro|defmacro-|deftest)\\s+(.+?)(?=\\s|\\))",
|
192
|
-
"beginCaptures": {
|
193
|
-
"1": {
|
194
|
-
"name": "keyword.control.hy"
|
195
|
-
},
|
196
|
-
"2": {
|
197
|
-
"name": "entity.global.hy"
|
198
|
-
}
|
199
|
-
},
|
200
|
-
"end": "(?=\\))",
|
201
|
-
"name": "meta.definition.global.hy",
|
202
|
-
"patterns": [
|
203
|
-
{
|
204
|
-
"include": "$self"
|
205
|
-
}
|
206
|
-
]
|
207
|
-
},
|
208
|
-
{
|
209
|
-
"include": "$self"
|
210
|
-
}
|
211
|
-
]
|
212
|
-
},
|
213
|
-
"shebang-comment": {
|
214
|
-
"captures": {
|
215
|
-
"1": {
|
216
|
-
"name": "punctuation.definition.comment.shebang.hy"
|
217
|
-
}
|
218
|
-
},
|
219
|
-
"match": "^(\\#!).*$\\n?",
|
220
|
-
"name": "comment.line.semicolon.hy"
|
221
|
-
},
|
222
|
-
"string": {
|
223
|
-
"begin": "(\")",
|
224
|
-
"beginCaptures": {
|
225
|
-
"1": {
|
226
|
-
"name": "punctuation.definition.string.begin.hy"
|
227
|
-
}
|
228
|
-
},
|
229
|
-
"end": "(\")",
|
230
|
-
"endCaptures": {
|
231
|
-
"1": {
|
232
|
-
"name": "punctuation.definition.string.end.hy"
|
233
|
-
}
|
234
|
-
},
|
235
|
-
"name": "string.quoted.double.hy",
|
236
|
-
"patterns": [
|
237
|
-
{
|
238
|
-
"match": "\\\\.",
|
239
|
-
"name": "constant.character.escape.hy"
|
240
|
-
}
|
241
|
-
]
|
242
|
-
},
|
243
|
-
"symbol": {
|
244
|
-
"patterns": [
|
245
|
-
{
|
246
|
-
"match": "(\\w[\\w\\d]+)",
|
247
|
-
"name": "meta.symbol.hy"
|
248
|
-
}
|
249
|
-
]
|
250
|
-
},
|
251
|
-
"var": {
|
252
|
-
"match": "(?<=(\\s|\\(|\\[|\\{)\\#)'[a-zA-Z0-9\\.\\-\\_\\:\\+\\=\\>\\<\\/\\!\\?\\*]+(?=(\\s|\\)|\\]|\\}))",
|
253
|
-
"name": "meta.var.hy"
|
254
|
-
},
|
255
|
-
"list": {
|
256
|
-
"begin": "(\\[)",
|
257
|
-
"end": "(\\])",
|
258
|
-
"name": "meta.list.hy",
|
259
|
-
"patterns": [
|
260
|
-
{
|
261
|
-
"include": "$self"
|
262
|
-
}
|
263
|
-
]
|
264
|
-
},
|
265
|
-
"whitespace": {
|
266
|
-
"match": "\\s+$",
|
267
|
-
"name": "invalid.trailing-whitespace"
|
268
|
-
}
|
269
|
-
}
|
270
|
-
}
|