github-linguist 4.8.17 → 4.8.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grammars/source.abnf.json +0 -11
- data/grammars/source.c.json +4 -0
- data/grammars/source.fontforge.json +359 -0
- data/grammars/source.gn.json +248 -0
- data/grammars/source.js.json +7 -7
- data/grammars/source.ninja.json +218 -30
- data/grammars/source.opentype.json +452 -0
- data/grammars/source.perl.json +1 -1
- data/grammars/source.rascal.json +287 -0
- data/grammars/source.swift.json +6 -6
- data/grammars/source.viml.json +1 -1
- data/grammars/text.haml.json +305 -118
- data/grammars/text.hamlc.json +225 -0
- data/grammars/text.sfd.json +212 -0
- data/lib/linguist/blob.rb +1 -1
- data/lib/linguist/generated.rb +2 -4
- data/lib/linguist/heuristics.rb +6 -0
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +56 -6
- data/lib/linguist/samples.json +2232 -153
- data/lib/linguist/vendor.yml +3 -0
- data/lib/linguist/version.rb +1 -1
- metadata +9 -4
- data/grammars/source.xquery.json +0 -211
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: 4.8.
|
4
|
+
version: 4.8.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: charlock_holmes
|
@@ -311,6 +311,7 @@ files:
|
|
311
311
|
- grammars/source.factor.json
|
312
312
|
- grammars/source.fancy.json
|
313
313
|
- grammars/source.fish.json
|
314
|
+
- grammars/source.fontforge.json
|
314
315
|
- grammars/source.forth.json
|
315
316
|
- grammars/source.fortran.json
|
316
317
|
- grammars/source.fortran.modern.json
|
@@ -326,6 +327,7 @@ files:
|
|
326
327
|
- grammars/source.gdscript.json
|
327
328
|
- grammars/source.gfm.json
|
328
329
|
- grammars/source.glsl.json
|
330
|
+
- grammars/source.gn.json
|
329
331
|
- grammars/source.gnuplot.json
|
330
332
|
- grammars/source.go.json
|
331
333
|
- grammars/source.golo.json
|
@@ -423,6 +425,7 @@ files:
|
|
423
425
|
- grammars/source.opal.json
|
424
426
|
- grammars/source.opalsysdefs.json
|
425
427
|
- grammars/source.opencobol.json
|
428
|
+
- grammars/source.opentype.json
|
426
429
|
- grammars/source.ox.json
|
427
430
|
- grammars/source.oz.json
|
428
431
|
- grammars/source.papyrus.skyrim.json
|
@@ -457,6 +460,7 @@ files:
|
|
457
460
|
- grammars/source.qml.json
|
458
461
|
- grammars/source.r.json
|
459
462
|
- grammars/source.racket.json
|
463
|
+
- grammars/source.rascal.json
|
460
464
|
- grammars/source.rebol.json
|
461
465
|
- grammars/source.red.json
|
462
466
|
- grammars/source.regexp.babel.json
|
@@ -521,7 +525,6 @@ files:
|
|
521
525
|
- grammars/source.x86asm.json
|
522
526
|
- grammars/source.xc.json
|
523
527
|
- grammars/source.xq.json
|
524
|
-
- grammars/source.xquery.json
|
525
528
|
- grammars/source.xtend.json
|
526
529
|
- grammars/source.yaml.json
|
527
530
|
- grammars/source.yaml.salt.json
|
@@ -535,6 +538,7 @@ files:
|
|
535
538
|
- grammars/text.find-refs.json
|
536
539
|
- grammars/text.gherkin.feature.json
|
537
540
|
- grammars/text.haml.json
|
541
|
+
- grammars/text.hamlc.json
|
538
542
|
- grammars/text.html.abl.json
|
539
543
|
- grammars/text.html.asciidoc.json
|
540
544
|
- grammars/text.html.asdoc.json
|
@@ -578,6 +582,7 @@ files:
|
|
578
582
|
- grammars/text.robot.json
|
579
583
|
- grammars/text.roff.json
|
580
584
|
- grammars/text.runoff.json
|
585
|
+
- grammars/text.sfd.json
|
581
586
|
- grammars/text.shell-session.json
|
582
587
|
- grammars/text.slim.json
|
583
588
|
- grammars/text.srt.json
|
@@ -638,7 +643,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
638
643
|
version: '0'
|
639
644
|
requirements: []
|
640
645
|
rubyforge_project:
|
641
|
-
rubygems_version: 2.
|
646
|
+
rubygems_version: 2.5.1
|
642
647
|
signing_key:
|
643
648
|
specification_version: 4
|
644
649
|
summary: GitHub Language detection
|
data/grammars/source.xquery.json
DELETED
@@ -1,211 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"fileTypes": [
|
3
|
-
"xq",
|
4
|
-
"xql",
|
5
|
-
"xqm",
|
6
|
-
"xqy",
|
7
|
-
"xquery"
|
8
|
-
],
|
9
|
-
"firstLineMatch": "^\\bxquery version\\b.*",
|
10
|
-
"keyEquivalent": "^~X",
|
11
|
-
"name": "XQuery",
|
12
|
-
"patterns": [
|
13
|
-
{
|
14
|
-
"match": "^xquery version .*;$",
|
15
|
-
"name": "keyword.control.import.xquery"
|
16
|
-
},
|
17
|
-
{
|
18
|
-
"match": "\\b(?i:(\\d+\\.\\d*(e[\\-\\+]?\\d+)?))(?=[^a-zA-Z_])",
|
19
|
-
"name": "constant.numeric.float.xquery"
|
20
|
-
},
|
21
|
-
{
|
22
|
-
"match": "(?<=[^0-9a-zA-Z_])(?i:(\\.\\d+(e[\\-\\+]?\\d+)?))",
|
23
|
-
"name": "constant.numeric.float.xquery"
|
24
|
-
},
|
25
|
-
{
|
26
|
-
"match": "\\b(?i:(\\d+e[\\-\\+]?\\d+))",
|
27
|
-
"name": "constant.numeric.float.xquery"
|
28
|
-
},
|
29
|
-
{
|
30
|
-
"match": "\\b([1-9]+[0-9]*|0)",
|
31
|
-
"name": "constant.numeric.integer.decimal.xquery"
|
32
|
-
},
|
33
|
-
{
|
34
|
-
"match": "\\b(import|module|schema)\\b",
|
35
|
-
"name": "keyword.control.import.xquery"
|
36
|
-
},
|
37
|
-
{
|
38
|
-
"begin": "\\(:",
|
39
|
-
"captures": {
|
40
|
-
"0": {
|
41
|
-
"name": "punctuation.definition.comment.xquery"
|
42
|
-
}
|
43
|
-
},
|
44
|
-
"end": ":\\)",
|
45
|
-
"name": "comment.block.xquery"
|
46
|
-
},
|
47
|
-
{
|
48
|
-
"comment": "http://www.w3.org/TR/xpath-datamodel/#types",
|
49
|
-
"match": "(?<![:\\-_a-zA-Z0-9])((xs:)(string|boolean|decimal|float|double|duration|dateTime|time|date|gYearMonth|gYear|gMonthDay|gDay|gMonth|hexBinary|base64Binary|anyURI|QName|NOTATION|anyAtomicType|anyType|anySimpleType|untypedAtomic|dayTimeDuration|yearMonthDuration|integer|nonPositiveInteger|negativeInteger|long|int|short|byte|nonNegativeInteger|unsignedLong|unsignedInt|unsignedShort|unsignedByte|positiveInteger|ENTITY|ID|NMTOKEN|language|NCName|Name|token|normalizedString))(?![:\\-_a-zA-Z0-9])",
|
50
|
-
"name": "support.type.xquery"
|
51
|
-
},
|
52
|
-
{
|
53
|
-
"include": "#function_call"
|
54
|
-
},
|
55
|
-
{
|
56
|
-
"captures": {
|
57
|
-
"1": {
|
58
|
-
"name": "punctuation.definition.variable.xquery"
|
59
|
-
}
|
60
|
-
},
|
61
|
-
"match": "((\\$)(?:([\\-_a-zA-Z0-9]+)((:)))?([\\-_a-zA-Z0-9]+))",
|
62
|
-
"name": "variable.other.xquery"
|
63
|
-
},
|
64
|
-
{
|
65
|
-
"match": "/(child|descendant|attribute|self|descendant-or-self|following-sibling|following|parent|ancestor|preceding-sibling|preceding|ancestor-or-self)::",
|
66
|
-
"name": "support.constant.xquery"
|
67
|
-
},
|
68
|
-
{
|
69
|
-
"include": "text.xml"
|
70
|
-
},
|
71
|
-
{
|
72
|
-
"captures": {
|
73
|
-
"1": {
|
74
|
-
"name": "keyword.other.xquery"
|
75
|
-
},
|
76
|
-
"2": {
|
77
|
-
"name": "storage.type.function.xquery"
|
78
|
-
},
|
79
|
-
"3": {
|
80
|
-
"name": "entity.name.function.xquery"
|
81
|
-
}
|
82
|
-
},
|
83
|
-
"match": "(declare)\\s+(function)\\s+((?:([\\-_a-zA-Z0-9]+):)?([\\-_a-zA-Z0-9]+))",
|
84
|
-
"name": "meta.function.xquery"
|
85
|
-
},
|
86
|
-
{
|
87
|
-
"captures": {
|
88
|
-
"1": {
|
89
|
-
"name": "keyword.other.xquery"
|
90
|
-
},
|
91
|
-
"2": {
|
92
|
-
"name": "storage.type.variable.xquery"
|
93
|
-
}
|
94
|
-
},
|
95
|
-
"match": "(declare)\\s+(variable)",
|
96
|
-
"name": "meta.variable.xquery"
|
97
|
-
},
|
98
|
-
{
|
99
|
-
"match": "\\b(declare|namespace|preserve|no-preserve|inherit|no-inherit|strip|boundary-space|default|instance|option|copy-namespaces)\\b",
|
100
|
-
"name": "keyword.other.prolog.xquery"
|
101
|
-
},
|
102
|
-
{
|
103
|
-
"match": "(?<![:\\-_a-zA-Z0-9])(of|as|by|in|at|or|and)(?![:\\-_a-zA-Z0-9])",
|
104
|
-
"name": "keyword.operator.logical.xquery"
|
105
|
-
},
|
106
|
-
{
|
107
|
-
"captures": {
|
108
|
-
"1": {
|
109
|
-
"name": "keyword.control.flow.xquery"
|
110
|
-
}
|
111
|
-
},
|
112
|
-
"match": "(?<![:\\-_a-zA-Z0-9])(for|let|return|where|if|then|else|order by|satisfies|every)(?![:\\-_a-zA-Z0-9])"
|
113
|
-
},
|
114
|
-
{
|
115
|
-
"captures": {
|
116
|
-
"1": {
|
117
|
-
"name": "support.type.xquery"
|
118
|
-
}
|
119
|
-
},
|
120
|
-
"match": "(?<![:\\-_a-zA-Z0-9])(element|attribute|document-node|schema-element|schema-attribute|processing-instruction|comment|text|node)(?![:\\-_a-zA-Z0-9])"
|
121
|
-
},
|
122
|
-
{
|
123
|
-
"begin": "\"",
|
124
|
-
"beginCaptures": {
|
125
|
-
"0": {
|
126
|
-
"name": "punctuation.definition.string.begin.xquery"
|
127
|
-
}
|
128
|
-
},
|
129
|
-
"end": "\"",
|
130
|
-
"endCaptures": {
|
131
|
-
"0": {
|
132
|
-
"name": "punctuation.definition.string.end.xquery"
|
133
|
-
}
|
134
|
-
},
|
135
|
-
"name": "string.quoted.double.xquery"
|
136
|
-
},
|
137
|
-
{
|
138
|
-
"begin": "'",
|
139
|
-
"beginCaptures": {
|
140
|
-
"0": {
|
141
|
-
"name": "punctuation.definition.string.begin.xquery"
|
142
|
-
}
|
143
|
-
},
|
144
|
-
"end": "'",
|
145
|
-
"endCaptures": {
|
146
|
-
"0": {
|
147
|
-
"name": "punctuation.definition.string.end.xquery"
|
148
|
-
}
|
149
|
-
},
|
150
|
-
"name": "string.quoted.single.xquery"
|
151
|
-
},
|
152
|
-
{
|
153
|
-
"match": ":=",
|
154
|
-
"name": "keyword.operator.assignment.xquery"
|
155
|
-
},
|
156
|
-
{
|
157
|
-
"match": "(?<![:\\-_a-zA-Z0-9])(\\+|-|<=?|>=?|eq|ne|lt|le|ge|gt|\\*|div|idiv|mod)(?![:\\-_a-zA-Z0-9])",
|
158
|
-
"name": "keyword.operator.arithmetic.xquery"
|
159
|
-
},
|
160
|
-
{
|
161
|
-
"match": "(?<![:\\-_a-zA-Z0-9])((fn:)?(abs|adjust-date-to-timezone|adjust-date-to-timezone|adjust-dateTime-to-timezone|adjust-dateTime-to-timezone|adjust-time-to-timezone|adjust-time-to-timezone|avg|base-uri|base-uri|boolean|ceiling|codepoint-equal|codepoints-to-string|collection|collection|compare|concat|contains|count|current-date|current-dateTime|current-time|data|dateTime|day-from-date|day-from-dateTime|days-from-duration|deep-equal|default-collation|distinct-values|distinct-values|doc|doc-available|document-uri|empty|ends-with|error|escape-uri|exactly-one|exists|false|floor|hours-from-dateTime|hours-from-duration|hours-from-time|id|idref|implicit-timezone|in-scope-prefixes|index-of|insert-before|lang|last|local-name|local-name-from-QName|lower-case|matches|max|min|minutes-from-dateTime|minutes-from-duration|minutes-from-time|month-from-date|month-from-dateTime|months-from-duration|name|namespace-uri|namespace-uri-for-prefix|namespace-uri-from-QName|nilled|node-name|normalize-space|normalize-unicode|not|number|one-or-more|position|prefix-from-QName|QName|remove|replace|resolve-QName|resolve-uri|reverse|root|round|round-half-to-even|seconds-from-dateTime|seconds-from-duration|seconds-from-time|starts-with|static-base-uri|string|string-join|string-length|string-to-codepoints|subsequence|substring|substring-after|substring-before|sum|timezone-from-date|timezone-from-dateTime|timezone-from-time|tokenize|trace|translate|true|unordered|upper-case|year-from-date|year-from-dateTime|years-from-duration|zero-or-one))(?=\\s*\\()",
|
162
|
-
"name": "support.function.builtin.xquery"
|
163
|
-
},
|
164
|
-
{
|
165
|
-
"begin": "(\\()",
|
166
|
-
"beginCaptures": {
|
167
|
-
"1": {
|
168
|
-
"name": "punctuation.section.scope.begin.xquery"
|
169
|
-
}
|
170
|
-
},
|
171
|
-
"end": "(\\))",
|
172
|
-
"endCaptures": {
|
173
|
-
"1": {
|
174
|
-
"name": "punctuation.section.scope.end.xquery"
|
175
|
-
}
|
176
|
-
},
|
177
|
-
"name": "meta.scope.xquery",
|
178
|
-
"patterns": [
|
179
|
-
{
|
180
|
-
"include": "$self"
|
181
|
-
}
|
182
|
-
]
|
183
|
-
}
|
184
|
-
],
|
185
|
-
"repository": {
|
186
|
-
"function_call": {
|
187
|
-
"begin": "[\\-_a-zA-Z0-9]+:[\\-_a-zA-Z0-9]+(\\()",
|
188
|
-
"beginCaptures": {
|
189
|
-
"1": {
|
190
|
-
"name": "punctuation.definition.parameters.begin.xquery"
|
191
|
-
}
|
192
|
-
},
|
193
|
-
"end": "(\\))",
|
194
|
-
"endCaptures": {
|
195
|
-
"1": {
|
196
|
-
"name": "punctuation.definition.parameters.end.xquery"
|
197
|
-
}
|
198
|
-
},
|
199
|
-
"patterns": [
|
200
|
-
{
|
201
|
-
"include": "#function_call"
|
202
|
-
},
|
203
|
-
{
|
204
|
-
"include": "$self"
|
205
|
-
}
|
206
|
-
]
|
207
|
-
}
|
208
|
-
},
|
209
|
-
"scopeName": "source.xquery",
|
210
|
-
"uuid": "5FB86104-E38E-4DAA-B929-DF98011DECBD"
|
211
|
-
}
|