linguist-js 2.5.3 → 2.5.4
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.
- package/dist/index.js +1 -1
- package/dist/schema.d.ts +1 -1
- package/dist/types.d.ts +6 -6
- package/ext/documentation.yml +6 -2
- package/ext/generated.rb +61 -17
- package/ext/heuristics.yml +40 -2
- package/ext/languages.yml +221 -5
- package/ext/vendor.yml +4 -3
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -123,7 +123,7 @@ async function analyse(input, opts = {}) {
|
|
|
123
123
|
forcedLang = overrideLang[0];
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
const fullPath = relPath(folder)
|
|
126
|
+
const fullPath = path_1.default.join(relPath(folder), path);
|
|
127
127
|
overrides[fullPath] = forcedLang;
|
|
128
128
|
}
|
|
129
129
|
}
|
package/dist/schema.d.ts
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
1
|
+
export type LanguageResult = string | null;
|
|
2
|
+
export type Language = string;
|
|
3
|
+
export type Category = 'data' | 'markup' | 'programming' | 'prose';
|
|
4
|
+
export type FilePath = string;
|
|
5
|
+
export type Bytes = Integer;
|
|
6
|
+
export type Integer = number;
|
|
7
7
|
export interface Options {
|
|
8
8
|
fileContent?: string | string[];
|
|
9
9
|
ignoredFiles?: string[];
|
package/ext/documentation.yml
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
1
3
|
- ^[Dd]ocs?/
|
|
2
4
|
- (^|/)[Dd]ocumentation/
|
|
3
5
|
- (^|/)[Gg]roovydoc/
|
|
@@ -5,7 +7,9 @@
|
|
|
5
7
|
- ^[Mm]an/
|
|
6
8
|
- ^[Ee]xamples/
|
|
7
9
|
- ^[Dd]emos?/
|
|
8
|
-
- (^|/)inst/doc
|
|
10
|
+
- (^|/)inst/doc/
|
|
11
|
+
|
|
12
|
+
- (^|/)CITATION(\.cff|(S)?(\.(bib|md))?)$
|
|
9
13
|
- (^|/)CHANGE(S|LOG)?(\.|$)
|
|
10
14
|
- (^|/)CONTRIBUTING(\.|$)
|
|
11
15
|
- (^|/)COPYING(\.|$)
|
|
@@ -14,4 +18,4 @@
|
|
|
14
18
|
- (^|/)[Ll]icen[cs]e(\.|$)
|
|
15
19
|
- (^|/)README(\.|$)
|
|
16
20
|
- (^|/)[Rr]eadme(\.|$)
|
|
17
|
-
- ^[Ss]amples?/
|
|
21
|
+
- ^[Ss]amples?/
|
package/ext/generated.rb
CHANGED
|
@@ -7,7 +7,9 @@ module Linguist
|
|
|
7
7
|
@name = name
|
|
8
8
|
@extname = File.extname(name)
|
|
9
9
|
@_data = data
|
|
10
|
-
end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
attr_reader :name, :extname
|
|
11
13
|
def data
|
|
12
14
|
@data ||= @_data.respond_to?(:call) ? @_data.call() : @_data
|
|
13
15
|
end
|
|
@@ -28,6 +30,7 @@ module Linguist
|
|
|
28
30
|
go_vendor? ||
|
|
29
31
|
go_lock? ||
|
|
30
32
|
poetry_lock? ||
|
|
33
|
+
pdm_lock? ||
|
|
31
34
|
esy_lock? ||
|
|
32
35
|
npm_shrinkwrap_or_package_lock? ||
|
|
33
36
|
terraform_lock? ||
|
|
@@ -67,7 +70,8 @@ module Linguist
|
|
|
67
70
|
generated_visualstudio6? ||
|
|
68
71
|
generated_haxe? ||
|
|
69
72
|
generated_jooq? ||
|
|
70
|
-
generated_pascal_tlb?
|
|
73
|
+
generated_pascal_tlb? ||
|
|
74
|
+
generated_sorbet_rbi?
|
|
71
75
|
end
|
|
72
76
|
def xcode_file?
|
|
73
77
|
['.nib', '.xcworkspacedata', '.xcuserstate'].include?(extname)
|
|
@@ -96,7 +100,9 @@ module Linguist
|
|
|
96
100
|
lines.last(2).any? { |l| l.match(/^\/[*\/][\#@] source(?:Mapping)?URL|sourceURL=/) }
|
|
97
101
|
end
|
|
98
102
|
def source_map?
|
|
99
|
-
return false unless extname.downcase == '.map'
|
|
103
|
+
return false unless extname.downcase == '.map'
|
|
104
|
+
|
|
105
|
+
name =~ /(\.css|\.js)\.map$/i ||
|
|
100
106
|
lines[0] =~ /^{"version":\d+,/ ||
|
|
101
107
|
lines[0] =~ /^\/\*\* Begin line maps\. \*\*\/{/
|
|
102
108
|
end
|
|
@@ -104,9 +110,15 @@ module Linguist
|
|
|
104
110
|
return false unless extname == '.js'
|
|
105
111
|
if lines[0] =~ /^\/\/ Generated by /
|
|
106
112
|
return true
|
|
107
|
-
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if lines[0] == '(function() {' &&
|
|
108
116
|
lines[-2] == '}).call(this);' &&
|
|
109
|
-
lines[-1] == ''
|
|
117
|
+
lines[-1] == ''
|
|
118
|
+
|
|
119
|
+
score = 0
|
|
120
|
+
|
|
121
|
+
lines.each do |line|
|
|
110
122
|
if line =~ /var /
|
|
111
123
|
score += 1 * line.gsub(/(_fn|_i|_len|_ref|_results)/).count
|
|
112
124
|
score += 3 * line.gsub(/(__bind|__extends|__hasProp|__indexOf|__slice)/).count
|
|
@@ -134,7 +146,9 @@ module Linguist
|
|
|
134
146
|
return false unless extname == '.js'
|
|
135
147
|
if lines[0..4].join('') =~ /^(?:[^\/]|\/[^\*])*\/\*(?:[^\*]|\*[^\/])*Generated by PEG.js/
|
|
136
148
|
return true
|
|
137
|
-
end
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
false
|
|
138
152
|
end
|
|
139
153
|
def generated_postscript?
|
|
140
154
|
return false unless ['.ps', '.eps', '.pfa'].include? extname
|
|
@@ -144,29 +158,45 @@ module Linguist
|
|
|
144
158
|
return true if creator =~ /[0-9]|draw|mpage|ImageMagick|inkscape|MATLAB/ ||
|
|
145
159
|
creator =~ /PCBNEW|pnmtops|\(Unknown\)|Serif Affinity|Filterimage -tops/
|
|
146
160
|
!!creator.include?("EAGLE") and lines[0..4].find {|line| line =~ /^%%Title: EAGLE Drawing /}
|
|
147
|
-
end
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
def generated_go?
|
|
148
164
|
return false unless extname == '.go'
|
|
149
|
-
return false unless lines.count > 1
|
|
165
|
+
return false unless lines.count > 1
|
|
166
|
+
|
|
167
|
+
return lines.first(40).any? { |l| l =~ %r{^// Code generated .*} }
|
|
150
168
|
end
|
|
151
169
|
def generated_protocol_buffer_from_go?
|
|
152
170
|
return false unless extname == '.proto'
|
|
153
|
-
return false unless lines.count > 1
|
|
154
|
-
|
|
171
|
+
return false unless lines.count > 1
|
|
172
|
+
|
|
173
|
+
return lines.first(20).any? { |l| l.include? "This file was autogenerated by go-to-protobuf" }
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
PROTOBUF_EXTENSIONS = ['.py', '.java', '.h', '.cc', '.cpp', '.m', '.rb', '.php']
|
|
155
177
|
def generated_protocol_buffer?
|
|
156
178
|
return false unless PROTOBUF_EXTENSIONS.include?(extname)
|
|
157
|
-
return false unless lines.count > 1
|
|
179
|
+
return false unless lines.count > 1
|
|
180
|
+
|
|
181
|
+
return lines.first(3).any? { |l| l.include?("Generated by the protocol buffer compiler. DO NOT EDIT!") }
|
|
158
182
|
end
|
|
159
183
|
def generated_javascript_protocol_buffer?
|
|
160
184
|
return false unless extname == ".js"
|
|
161
|
-
return false unless lines.count > 6
|
|
162
|
-
|
|
185
|
+
return false unless lines.count > 6
|
|
186
|
+
|
|
187
|
+
return lines[5].include?("GENERATED CODE -- DO NOT EDIT!")
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
APACHE_THRIFT_EXTENSIONS = ['.rb', '.py', '.go', '.js', '.m', '.java', '.h', '.cc', '.cpp', '.php']
|
|
163
191
|
def generated_apache_thrift?
|
|
164
192
|
return false unless APACHE_THRIFT_EXTENSIONS.include?(extname)
|
|
165
193
|
return lines.first(6).any? { |l| l.include?("Autogenerated by Thrift Compiler") }
|
|
166
194
|
end
|
|
167
195
|
def generated_jni_header?
|
|
168
196
|
return false unless extname == '.h'
|
|
169
|
-
return false unless lines.count > 2
|
|
197
|
+
return false unless lines.count > 2
|
|
198
|
+
|
|
199
|
+
return lines[0].include?("/* DO NOT EDIT THIS FILE - it is machine generated */") &&
|
|
170
200
|
lines[1].include?("#include <jni.h>")
|
|
171
201
|
end
|
|
172
202
|
def node_modules?
|
|
@@ -181,6 +211,9 @@ module Linguist
|
|
|
181
211
|
def poetry_lock?
|
|
182
212
|
!!name.match(/poetry\.lock/)
|
|
183
213
|
end
|
|
214
|
+
def pdm_lock?
|
|
215
|
+
!!name.match(/pdm\.lock/)
|
|
216
|
+
end
|
|
184
217
|
def esy_lock?
|
|
185
218
|
!!name.match(/(^|\/)(\w+\.)?esy.lock$/)
|
|
186
219
|
end
|
|
@@ -251,7 +284,9 @@ module Linguist
|
|
|
251
284
|
end
|
|
252
285
|
def generated_roxygen2?
|
|
253
286
|
return false unless extname == '.Rd'
|
|
254
|
-
return false unless lines.count > 1
|
|
287
|
+
return false unless lines.count > 1
|
|
288
|
+
|
|
289
|
+
return lines[0].include?("% Generated by roxygen2: do not edit by hand")
|
|
255
290
|
end
|
|
256
291
|
def generated_jison?
|
|
257
292
|
return false unless extname == '.js'
|
|
@@ -292,7 +327,9 @@ module Linguist
|
|
|
292
327
|
def generated_visualstudio6?
|
|
293
328
|
return false unless extname.downcase == '.dsp'
|
|
294
329
|
lines.first(3).any? { |l| l.include? '# Microsoft Developer Studio Generated Build File' }
|
|
295
|
-
end
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
HAXE_EXTENSIONS = ['.js', '.py', '.lua', '.cpp', '.h', '.java', '.cs', '.php']
|
|
296
333
|
def generated_haxe?
|
|
297
334
|
return false unless HAXE_EXTENSIONS.include?(extname)
|
|
298
335
|
return lines.first(3).any? { |l| l.include?("Generated by Haxe") }
|
|
@@ -332,6 +369,13 @@ module Linguist
|
|
|
332
369
|
def generated_pascal_tlb?
|
|
333
370
|
!!name.match(/_tlb\.pas$/i)
|
|
334
371
|
end
|
|
372
|
+
def generated_sorbet_rbi?
|
|
373
|
+
return false unless extname.downcase == '.rbi'
|
|
374
|
+
return false unless lines.count >= 5
|
|
375
|
+
lines[0].match?(/^# typed:/) &&
|
|
376
|
+
lines[2].include?("DO NOT EDIT MANUALLY") &&
|
|
377
|
+
lines[4].match?(/^# Please.*run.*`.*tapioca/)
|
|
378
|
+
end
|
|
335
379
|
def extract_html_meta(match)
|
|
336
380
|
(match.last.sub(/\/\Z/, "").strip.scan(/
|
|
337
381
|
(?<=^|\s)
|
|
@@ -348,4 +392,4 @@ module Linguist
|
|
|
348
392
|
end.select { |x| x.length == 2 }.to_h
|
|
349
393
|
end
|
|
350
394
|
end
|
|
351
|
-
end
|
|
395
|
+
end
|
package/ext/heuristics.yml
CHANGED
|
@@ -109,6 +109,12 @@ disambiguations:
|
|
|
109
109
|
pattern: '\/\* |\/\/ |^\}'
|
|
110
110
|
- extensions: ['.cls']
|
|
111
111
|
rules:
|
|
112
|
+
- language: Visual Basic 6.0
|
|
113
|
+
and:
|
|
114
|
+
- named_pattern: vb-class
|
|
115
|
+
- pattern: '^\s*BEGIN\R\s*MultiUse\s*=.*\R\s*Persistable\s*='
|
|
116
|
+
- language: VBA
|
|
117
|
+
named_pattern: vb-class
|
|
112
118
|
- language: TeX
|
|
113
119
|
pattern: '^\s*\\(?:NeedsTeXFormat|ProvidesClass){'
|
|
114
120
|
- language: ObjectScript
|
|
@@ -203,6 +209,16 @@ disambiguations:
|
|
|
203
209
|
- language: Frege
|
|
204
210
|
pattern: '^\s*(import|module|package|data|type) '
|
|
205
211
|
- language: Text
|
|
212
|
+
- extensions: ['.frm']
|
|
213
|
+
rules:
|
|
214
|
+
- language: VBA
|
|
215
|
+
and:
|
|
216
|
+
- named_pattern: vb-form
|
|
217
|
+
- pattern: '^\s*Begin\s+{[0-9A-Z\-]*}\s?'
|
|
218
|
+
- language: Visual Basic 6.0
|
|
219
|
+
and:
|
|
220
|
+
- named_pattern: vb-form
|
|
221
|
+
- pattern: '^\s*Begin\s+VB\.Form\s+'
|
|
206
222
|
- extensions: ['.fs']
|
|
207
223
|
rules:
|
|
208
224
|
- language: Forth
|
|
@@ -267,6 +283,11 @@ disambiguations:
|
|
|
267
283
|
rules:
|
|
268
284
|
- language: Hack
|
|
269
285
|
pattern: '<\?hh'
|
|
286
|
+
- extensions: ['.html']
|
|
287
|
+
rules:
|
|
288
|
+
- language: Ecmarkup
|
|
289
|
+
pattern: '<emu-(?:alg|annex|biblio|clause|eqn|example|figure|gann|gmod|gprose|grammar|intro|not-ref|note|nt|prodref|production|rhs|table|t|xref)(?:$|\s|>)'
|
|
290
|
+
- language: HTML
|
|
270
291
|
- extensions: ['.i']
|
|
271
292
|
rules:
|
|
272
293
|
- language: Motorola 68K Assembly
|
|
@@ -302,6 +323,13 @@ disambiguations:
|
|
|
302
323
|
pattern:
|
|
303
324
|
- '(?i:^\s*{\$(?:mode|ifdef|undef|define)[ ]+[a-z0-9_]+})'
|
|
304
325
|
- '^\s*end[.;]\s*$'
|
|
326
|
+
- extensions: ['.json']
|
|
327
|
+
rules:
|
|
328
|
+
- language: OASv2-json
|
|
329
|
+
pattern: '"swagger":\s?"2.[0-9.]+"'
|
|
330
|
+
- language: OASv3-json
|
|
331
|
+
pattern: '"openapi":\s?"3.[0-9.]+"'
|
|
332
|
+
- language: JSON
|
|
305
333
|
- extensions: ['.l']
|
|
306
334
|
rules:
|
|
307
335
|
- language: Common Lisp
|
|
@@ -440,7 +468,7 @@ disambiguations:
|
|
|
440
468
|
- extensions: ['.plist']
|
|
441
469
|
rules:
|
|
442
470
|
- language: XML Property List
|
|
443
|
-
pattern: '
|
|
471
|
+
pattern: '^\s*(?:<\?xml\s|<!DOCTYPE\s+plist|<plist(?:\s+version\s*=\s*(["''])\d+(?:\.\d+)?\1)?\s*>\s*$)'
|
|
444
472
|
- language: OpenStep Property List
|
|
445
473
|
- extensions: ['.pm']
|
|
446
474
|
rules:
|
|
@@ -603,6 +631,10 @@ disambiguations:
|
|
|
603
631
|
pattern: '^\s*(?:use\s+v6\b|\bmodule\b|\bmy\s+class\b)'
|
|
604
632
|
- language: Turing
|
|
605
633
|
pattern: '^\s*%[ \t]+|^\s*var\s+\w+(\s*:\s*\w+)?\s*:=\s*\w+'
|
|
634
|
+
- extensions: ['.tag']
|
|
635
|
+
rules:
|
|
636
|
+
- language: Java Server Pages
|
|
637
|
+
pattern: '<%[@!=\s]?\s*(taglib|tag|include|attribute|variable)\s'
|
|
606
638
|
- extensions: ['.toc']
|
|
607
639
|
rules:
|
|
608
640
|
- language: World of Warcraft Addon Data
|
|
@@ -684,11 +716,15 @@ disambiguations:
|
|
|
684
716
|
pattern: '^%(end|ctor|hook|group)\b'
|
|
685
717
|
- language: Linker Script
|
|
686
718
|
pattern: 'OUTPUT_ARCH\(|OUTPUT_FORMAT\(|SECTIONS'
|
|
687
|
-
- extensions: ['.yaml']
|
|
719
|
+
- extensions: ['.yaml', '.yml']
|
|
688
720
|
rules:
|
|
689
721
|
- language: MiniYAML
|
|
690
722
|
pattern: '^\t+.*?[^\s:].*?:'
|
|
691
723
|
negative_pattern: '---'
|
|
724
|
+
- language: OASv2-yaml
|
|
725
|
+
pattern: 'swagger:\s?''?"?2.[0-9.]+''?"?'
|
|
726
|
+
- language: OASv3-yaml
|
|
727
|
+
pattern: 'openapi:\s?''?"?3.[0-9.]+''?"?'
|
|
692
728
|
- language: YAML
|
|
693
729
|
- extensions: ['.yy']
|
|
694
730
|
rules:
|
|
@@ -731,3 +767,5 @@ named_patterns:
|
|
|
731
767
|
objectivec: '^\s*(@(interface|class|protocol|property|end|synchronised|selector|implementation)\b|#import\s+.+\.h[">])'
|
|
732
768
|
perl5: '\buse\s+(?:strict\b|v?5\.)'
|
|
733
769
|
perl6: '^\s*(?:use\s+v6\b|\bmodule\b|\b(?:my\s+)?class\b)'
|
|
770
|
+
vb-class: '^\s*VERSION\s+[0-9]\.[0-9]\s+CLASS'
|
|
771
|
+
vb-form: '^\s*VERSION\s+[0-9]\.[0-9]{2}'
|
package/ext/languages.yml
CHANGED
|
@@ -1309,6 +1309,15 @@ Cycript:
|
|
|
1309
1309
|
codemirror_mode: javascript
|
|
1310
1310
|
codemirror_mime_type: text/javascript
|
|
1311
1311
|
language_id: 78
|
|
1312
|
+
Cypher:
|
|
1313
|
+
type: programming
|
|
1314
|
+
color: "#34c0eb"
|
|
1315
|
+
extensions:
|
|
1316
|
+
- ".cyp"
|
|
1317
|
+
- ".cypher"
|
|
1318
|
+
tm_scope: source.cypher
|
|
1319
|
+
ace_mode: text
|
|
1320
|
+
language_id: 850806976
|
|
1312
1321
|
Cython:
|
|
1313
1322
|
type: programming
|
|
1314
1323
|
color: "#fedf5b"
|
|
@@ -1625,10 +1634,25 @@ Ecere Projects:
|
|
|
1625
1634
|
codemirror_mode: javascript
|
|
1626
1635
|
codemirror_mime_type: application/json
|
|
1627
1636
|
language_id: 98
|
|
1637
|
+
Ecmarkup:
|
|
1638
|
+
type: markup
|
|
1639
|
+
color: "#eb8131"
|
|
1640
|
+
group: HTML
|
|
1641
|
+
extensions:
|
|
1642
|
+
- ".html"
|
|
1643
|
+
tm_scope: text.html.ecmarkup
|
|
1644
|
+
ace_mode: html
|
|
1645
|
+
codemirror_mode: htmlmixed
|
|
1646
|
+
codemirror_mime_type: text/html
|
|
1647
|
+
aliases:
|
|
1648
|
+
- ecmarkdown
|
|
1649
|
+
language_id: 844766630
|
|
1628
1650
|
EditorConfig:
|
|
1629
1651
|
type: data
|
|
1630
1652
|
color: "#fff1f2"
|
|
1631
1653
|
group: INI
|
|
1654
|
+
extensions:
|
|
1655
|
+
- ".editorconfig"
|
|
1632
1656
|
filenames:
|
|
1633
1657
|
- ".editorconfig"
|
|
1634
1658
|
aliases:
|
|
@@ -2833,6 +2857,14 @@ ImageJ Macro:
|
|
|
2833
2857
|
ace_mode: text
|
|
2834
2858
|
tm_scope: none
|
|
2835
2859
|
language_id: 575143428
|
|
2860
|
+
Imba:
|
|
2861
|
+
type: programming
|
|
2862
|
+
color: "#16cec6"
|
|
2863
|
+
extensions:
|
|
2864
|
+
- ".imba"
|
|
2865
|
+
ace_mode: text
|
|
2866
|
+
tm_scope: source.imba
|
|
2867
|
+
language_id: 1057618448
|
|
2836
2868
|
Inform 7:
|
|
2837
2869
|
type: programming
|
|
2838
2870
|
wrap: true
|
|
@@ -2845,6 +2877,14 @@ Inform 7:
|
|
|
2845
2877
|
- inform7
|
|
2846
2878
|
ace_mode: text
|
|
2847
2879
|
language_id: 166
|
|
2880
|
+
Ink:
|
|
2881
|
+
type: programming
|
|
2882
|
+
wrap: true
|
|
2883
|
+
extensions:
|
|
2884
|
+
- ".ink"
|
|
2885
|
+
tm_scope: source.ink
|
|
2886
|
+
ace_mode: text
|
|
2887
|
+
language_id: 838252715
|
|
2848
2888
|
Inno Setup:
|
|
2849
2889
|
type: programming
|
|
2850
2890
|
color: "#264b99"
|
|
@@ -2950,6 +2990,7 @@ JSON:
|
|
|
2950
2990
|
- ".yy"
|
|
2951
2991
|
- ".yyp"
|
|
2952
2992
|
filenames:
|
|
2993
|
+
- ".all-contributorsrc"
|
|
2953
2994
|
- ".arcconfig"
|
|
2954
2995
|
- ".auto-changelog"
|
|
2955
2996
|
- ".c8rc"
|
|
@@ -3063,6 +3104,7 @@ Java:
|
|
|
3063
3104
|
extensions:
|
|
3064
3105
|
- ".java"
|
|
3065
3106
|
- ".jav"
|
|
3107
|
+
- ".jsh"
|
|
3066
3108
|
language_id: 181
|
|
3067
3109
|
Java Properties:
|
|
3068
3110
|
type: data
|
|
@@ -3082,6 +3124,7 @@ Java Server Pages:
|
|
|
3082
3124
|
- jsp
|
|
3083
3125
|
extensions:
|
|
3084
3126
|
- ".jsp"
|
|
3127
|
+
- ".tag"
|
|
3085
3128
|
tm_scope: text.html.jsp
|
|
3086
3129
|
ace_mode: jsp
|
|
3087
3130
|
codemirror_mode: htmlembedded
|
|
@@ -3904,6 +3947,17 @@ Mercury:
|
|
|
3904
3947
|
- ".moo"
|
|
3905
3948
|
tm_scope: source.mercury
|
|
3906
3949
|
language_id: 229
|
|
3950
|
+
Mermaid:
|
|
3951
|
+
type: markup
|
|
3952
|
+
color: "#ff3670"
|
|
3953
|
+
aliases:
|
|
3954
|
+
- mermaid example
|
|
3955
|
+
extensions:
|
|
3956
|
+
- ".mmd"
|
|
3957
|
+
- ".mermaid"
|
|
3958
|
+
tm_scope: source.mermaid
|
|
3959
|
+
ace_mode: text
|
|
3960
|
+
language_id: 385992043
|
|
3907
3961
|
Meson:
|
|
3908
3962
|
type: programming
|
|
3909
3963
|
color: "#007800"
|
|
@@ -3950,6 +4004,7 @@ MiniYAML:
|
|
|
3950
4004
|
tm_scope: source.miniyaml
|
|
3951
4005
|
extensions:
|
|
3952
4006
|
- ".yaml"
|
|
4007
|
+
- ".yml"
|
|
3953
4008
|
ace_mode: yaml
|
|
3954
4009
|
codemirror_mode: yaml
|
|
3955
4010
|
codemirror_mime_type: text/x-yaml
|
|
@@ -4076,7 +4131,7 @@ Move:
|
|
|
4076
4131
|
type: programming
|
|
4077
4132
|
color: "#4a137a"
|
|
4078
4133
|
extensions:
|
|
4079
|
-
|
|
4134
|
+
- ".move"
|
|
4080
4135
|
tm_scope: source.move
|
|
4081
4136
|
ace_mode: text
|
|
4082
4137
|
language_id: 638334599
|
|
@@ -4345,6 +4400,52 @@ Nunjucks:
|
|
|
4345
4400
|
tm_scope: text.html.nunjucks
|
|
4346
4401
|
ace_mode: nunjucks
|
|
4347
4402
|
language_id: 461856962
|
|
4403
|
+
OASv2-json:
|
|
4404
|
+
type: data
|
|
4405
|
+
color: "#85ea2d"
|
|
4406
|
+
extensions:
|
|
4407
|
+
- ".json"
|
|
4408
|
+
group: OpenAPI Specification v2
|
|
4409
|
+
tm_scope: source.json
|
|
4410
|
+
ace_mode: json
|
|
4411
|
+
codemirror_mode: javascript
|
|
4412
|
+
codemirror_mime_type: application/json
|
|
4413
|
+
language_id: 834374816
|
|
4414
|
+
OASv2-yaml:
|
|
4415
|
+
type: data
|
|
4416
|
+
color: "#85ea2d"
|
|
4417
|
+
extensions:
|
|
4418
|
+
- ".yaml"
|
|
4419
|
+
- ".yml"
|
|
4420
|
+
group: OpenAPI Specification v2
|
|
4421
|
+
tm_scope: source.yaml
|
|
4422
|
+
ace_mode: yaml
|
|
4423
|
+
codemirror_mode: yaml
|
|
4424
|
+
codemirror_mime_type: text/x-yaml
|
|
4425
|
+
language_id: 105187618
|
|
4426
|
+
OASv3-json:
|
|
4427
|
+
type: data
|
|
4428
|
+
color: "#85ea2d"
|
|
4429
|
+
extensions:
|
|
4430
|
+
- ".json"
|
|
4431
|
+
group: OpenAPI Specification v3
|
|
4432
|
+
tm_scope: source.json
|
|
4433
|
+
ace_mode: json
|
|
4434
|
+
codemirror_mode: javascript
|
|
4435
|
+
codemirror_mime_type: application/json
|
|
4436
|
+
language_id: 980062566
|
|
4437
|
+
OASv3-yaml:
|
|
4438
|
+
type: data
|
|
4439
|
+
color: "#85ea2d"
|
|
4440
|
+
extensions:
|
|
4441
|
+
- ".yaml"
|
|
4442
|
+
- ".yml"
|
|
4443
|
+
group: OpenAPI Specification v3
|
|
4444
|
+
tm_scope: source.yaml
|
|
4445
|
+
ace_mode: yaml
|
|
4446
|
+
codemirror_mode: yaml
|
|
4447
|
+
codemirror_mime_type: text/x-yaml
|
|
4448
|
+
language_id: 51239111
|
|
4348
4449
|
OCaml:
|
|
4349
4450
|
type: programming
|
|
4350
4451
|
ace_mode: ocaml
|
|
@@ -4471,6 +4572,22 @@ Open Policy Agent:
|
|
|
4471
4572
|
- ".rego"
|
|
4472
4573
|
language_id: 840483232
|
|
4473
4574
|
tm_scope: source.rego
|
|
4575
|
+
OpenAPI Specification v2:
|
|
4576
|
+
aliases:
|
|
4577
|
+
- oasv2
|
|
4578
|
+
type: data
|
|
4579
|
+
color: "#85ea2d"
|
|
4580
|
+
tm_scope: none
|
|
4581
|
+
ace_mode: text
|
|
4582
|
+
language_id: 848295328
|
|
4583
|
+
OpenAPI Specification v3:
|
|
4584
|
+
aliases:
|
|
4585
|
+
- oasv3
|
|
4586
|
+
type: data
|
|
4587
|
+
color: "#85ea2d"
|
|
4588
|
+
tm_scope: none
|
|
4589
|
+
ace_mode: text
|
|
4590
|
+
language_id: 557959099
|
|
4474
4591
|
OpenCL:
|
|
4475
4592
|
type: programming
|
|
4476
4593
|
color: "#ed2e2d"
|
|
@@ -4542,6 +4659,21 @@ OpenType Feature File:
|
|
|
4542
4659
|
tm_scope: source.opentype
|
|
4543
4660
|
ace_mode: text
|
|
4544
4661
|
language_id: 374317347
|
|
4662
|
+
Option List:
|
|
4663
|
+
type: data
|
|
4664
|
+
color: "#476732"
|
|
4665
|
+
aliases:
|
|
4666
|
+
- opts
|
|
4667
|
+
- ackrc
|
|
4668
|
+
filenames:
|
|
4669
|
+
- ".ackrc"
|
|
4670
|
+
- ackrc
|
|
4671
|
+
- mocha.opts
|
|
4672
|
+
tm_scope: source.opts
|
|
4673
|
+
ace_mode: sh
|
|
4674
|
+
codemirror_mode: shell
|
|
4675
|
+
codemirror_mime_type: text/x-sh
|
|
4676
|
+
language_id: 723589315
|
|
4545
4677
|
Org:
|
|
4546
4678
|
type: prose
|
|
4547
4679
|
color: "#77aa99"
|
|
@@ -4586,6 +4718,14 @@ P4:
|
|
|
4586
4718
|
tm_scope: source.p4
|
|
4587
4719
|
ace_mode: text
|
|
4588
4720
|
language_id: 348895984
|
|
4721
|
+
PDDL:
|
|
4722
|
+
type: programming
|
|
4723
|
+
color: "#0d00ff"
|
|
4724
|
+
extensions:
|
|
4725
|
+
- ".pddl"
|
|
4726
|
+
tm_scope: source.pddl
|
|
4727
|
+
ace_mode: text
|
|
4728
|
+
language_id: 736235603
|
|
4589
4729
|
PEG.js:
|
|
4590
4730
|
type: programming
|
|
4591
4731
|
color: "#234d6b"
|
|
@@ -4778,10 +4918,12 @@ Perl:
|
|
|
4778
4918
|
- ".psgi"
|
|
4779
4919
|
- ".t"
|
|
4780
4920
|
filenames:
|
|
4921
|
+
- ".latexmkrc"
|
|
4781
4922
|
- Makefile.PL
|
|
4782
4923
|
- Rexfile
|
|
4783
4924
|
- ack
|
|
4784
4925
|
- cpanfile
|
|
4926
|
+
- latexmkrc
|
|
4785
4927
|
interpreters:
|
|
4786
4928
|
- cperl
|
|
4787
4929
|
- perl
|
|
@@ -4876,6 +5018,14 @@ PogoScript:
|
|
|
4876
5018
|
tm_scope: source.pogoscript
|
|
4877
5019
|
ace_mode: text
|
|
4878
5020
|
language_id: 289
|
|
5021
|
+
Polar:
|
|
5022
|
+
type: programming
|
|
5023
|
+
color: "#ae81ff"
|
|
5024
|
+
extensions:
|
|
5025
|
+
- ".polar"
|
|
5026
|
+
tm_scope: source.polar
|
|
5027
|
+
ace_mode: text
|
|
5028
|
+
language_id: 839112914
|
|
4879
5029
|
Pony:
|
|
4880
5030
|
type: programming
|
|
4881
5031
|
extensions:
|
|
@@ -5957,6 +6107,16 @@ Scaml:
|
|
|
5957
6107
|
tm_scope: source.scaml
|
|
5958
6108
|
ace_mode: text
|
|
5959
6109
|
language_id: 342
|
|
6110
|
+
Scenic:
|
|
6111
|
+
type: programming
|
|
6112
|
+
color: "#fdc700"
|
|
6113
|
+
extensions:
|
|
6114
|
+
- ".scenic"
|
|
6115
|
+
tm_scope: source.scenic
|
|
6116
|
+
ace_mode: text
|
|
6117
|
+
interpreters:
|
|
6118
|
+
- scenic
|
|
6119
|
+
language_id: 619814037
|
|
5960
6120
|
Scheme:
|
|
5961
6121
|
type: programming
|
|
5962
6122
|
color: "#1e4aec"
|
|
@@ -6119,6 +6279,19 @@ Sieve:
|
|
|
6119
6279
|
codemirror_mode: sieve
|
|
6120
6280
|
codemirror_mime_type: application/sieve
|
|
6121
6281
|
language_id: 208976687
|
|
6282
|
+
Simple File Verification:
|
|
6283
|
+
type: data
|
|
6284
|
+
group: Checksums
|
|
6285
|
+
color: "#C9BFED"
|
|
6286
|
+
extensions:
|
|
6287
|
+
- ".sfv"
|
|
6288
|
+
aliases:
|
|
6289
|
+
- sfv
|
|
6290
|
+
tm_scope: source.sfv
|
|
6291
|
+
ace_mode: ini
|
|
6292
|
+
codemirror_mode: properties
|
|
6293
|
+
codemirror_mime_type: text/x-properties
|
|
6294
|
+
language_id: 735623761
|
|
6122
6295
|
Singularity:
|
|
6123
6296
|
type: programming
|
|
6124
6297
|
color: "#64E6AD"
|
|
@@ -6193,6 +6366,16 @@ Smarty:
|
|
|
6193
6366
|
codemirror_mime_type: text/x-smarty
|
|
6194
6367
|
tm_scope: text.html.smarty
|
|
6195
6368
|
language_id: 353
|
|
6369
|
+
Smithy:
|
|
6370
|
+
type: programming
|
|
6371
|
+
ace_mode: text
|
|
6372
|
+
codemirror_mode: clike
|
|
6373
|
+
codemirror_mime_type: text/x-csrc
|
|
6374
|
+
tm_scope: source.smithy
|
|
6375
|
+
color: "#c44536"
|
|
6376
|
+
extensions:
|
|
6377
|
+
- ".smithy"
|
|
6378
|
+
language_id: 1027892786
|
|
6196
6379
|
Solidity:
|
|
6197
6380
|
type: programming
|
|
6198
6381
|
color: "#AA6746"
|
|
@@ -6275,6 +6458,7 @@ Starlark:
|
|
|
6275
6458
|
- BUILD.bazel
|
|
6276
6459
|
- Tiltfile
|
|
6277
6460
|
- WORKSPACE
|
|
6461
|
+
- WORKSPACE.bazel
|
|
6278
6462
|
aliases:
|
|
6279
6463
|
- bazel
|
|
6280
6464
|
- bzl
|
|
@@ -6399,6 +6583,7 @@ TOML:
|
|
|
6399
6583
|
- Cargo.lock
|
|
6400
6584
|
- Gopkg.lock
|
|
6401
6585
|
- Pipfile
|
|
6586
|
+
- pdm.lock
|
|
6402
6587
|
- poetry.lock
|
|
6403
6588
|
tm_scope: source.toml
|
|
6404
6589
|
ace_mode: toml
|
|
@@ -6454,8 +6639,13 @@ Tcl:
|
|
|
6454
6639
|
extensions:
|
|
6455
6640
|
- ".tcl"
|
|
6456
6641
|
- ".adp"
|
|
6642
|
+
- ".sdc"
|
|
6457
6643
|
- ".tcl.in"
|
|
6458
6644
|
- ".tm"
|
|
6645
|
+
- ".xdc"
|
|
6646
|
+
aliases:
|
|
6647
|
+
- sdc
|
|
6648
|
+
- xdc
|
|
6459
6649
|
filenames:
|
|
6460
6650
|
- owh
|
|
6461
6651
|
- starfield
|
|
@@ -6755,12 +6945,9 @@ VBA:
|
|
|
6755
6945
|
- ".bas"
|
|
6756
6946
|
- ".cls"
|
|
6757
6947
|
- ".frm"
|
|
6758
|
-
- ".frx"
|
|
6759
6948
|
- ".vba"
|
|
6760
6949
|
tm_scope: source.vbnet
|
|
6761
6950
|
aliases:
|
|
6762
|
-
- vb6
|
|
6763
|
-
- visual basic 6
|
|
6764
6951
|
- visual basic for applications
|
|
6765
6952
|
ace_mode: text
|
|
6766
6953
|
codemirror_mode: vb
|
|
@@ -6911,6 +7098,25 @@ Visual Basic .NET:
|
|
|
6911
7098
|
codemirror_mode: vb
|
|
6912
7099
|
codemirror_mime_type: text/x-vb
|
|
6913
7100
|
language_id: 389
|
|
7101
|
+
Visual Basic 6.0:
|
|
7102
|
+
type: programming
|
|
7103
|
+
color: "#2c6353"
|
|
7104
|
+
extensions:
|
|
7105
|
+
- ".cls"
|
|
7106
|
+
- ".ctl"
|
|
7107
|
+
- ".Dsr"
|
|
7108
|
+
- ".frm"
|
|
7109
|
+
tm_scope: source.vbnet
|
|
7110
|
+
aliases:
|
|
7111
|
+
- vb6
|
|
7112
|
+
- vb 6
|
|
7113
|
+
- visual basic 6
|
|
7114
|
+
- visual basic classic
|
|
7115
|
+
- classic visual basic
|
|
7116
|
+
ace_mode: text
|
|
7117
|
+
codemirror_mode: vb
|
|
7118
|
+
codemirror_mime_type: text/x-vb
|
|
7119
|
+
language_id: 679594952
|
|
6914
7120
|
Volt:
|
|
6915
7121
|
type: programming
|
|
6916
7122
|
color: "#1F1F1F"
|
|
@@ -7586,6 +7792,16 @@ jq:
|
|
|
7586
7792
|
- ".jq"
|
|
7587
7793
|
tm_scope: source.jq
|
|
7588
7794
|
language_id: 905371884
|
|
7795
|
+
just:
|
|
7796
|
+
type: programming
|
|
7797
|
+
aliases:
|
|
7798
|
+
- Justfile
|
|
7799
|
+
color: "#384d54"
|
|
7800
|
+
tm_scope: source.just
|
|
7801
|
+
filenames:
|
|
7802
|
+
- Justfile
|
|
7803
|
+
ace_mode: text
|
|
7804
|
+
language_id: 128447695
|
|
7589
7805
|
kvlang:
|
|
7590
7806
|
type: markup
|
|
7591
7807
|
ace_mode: text
|
|
@@ -7724,4 +7940,4 @@ xBase:
|
|
|
7724
7940
|
- ".prw"
|
|
7725
7941
|
tm_scope: source.harbour
|
|
7726
7942
|
ace_mode: text
|
|
7727
|
-
language_id: 421
|
|
7943
|
+
language_id: 421
|
package/ext/vendor.yml
CHANGED
|
@@ -103,7 +103,9 @@
|
|
|
103
103
|
- (^|/)env/
|
|
104
104
|
- (^|/)fabfile\.py$
|
|
105
105
|
- (^|/)waf$
|
|
106
|
-
- (^|/)\.osx
|
|
106
|
+
- (^|/)\.osx$
|
|
107
|
+
|
|
108
|
+
- \.xctemplate/
|
|
107
109
|
- \.imageset/
|
|
108
110
|
- (^|/)Carthage/
|
|
109
111
|
- (^|/)Sparkle/
|
|
@@ -151,7 +153,6 @@
|
|
|
151
153
|
- (^|/)foundation(\..*)?\.js$
|
|
152
154
|
- (^|/)Vagrantfile$
|
|
153
155
|
- (^|/)\.[Dd][Ss]_[Ss]tore$
|
|
154
|
-
- (^|/)vignettes/
|
|
155
156
|
- (^|/)inst/extdata/
|
|
156
157
|
- (^|/)octicons\.css
|
|
157
158
|
- (^|/)sprockets-octicons\.scss
|
|
@@ -163,4 +164,4 @@
|
|
|
163
164
|
- (^|/)\.google_apis/
|
|
164
165
|
- (^|/)Jenkinsfile$
|
|
165
166
|
- (^|/)\.gitpod\.Dockerfile$
|
|
166
|
-
- (^|/)\.github/
|
|
167
|
+
- (^|/)\.github/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linguist-js",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.4",
|
|
4
4
|
"description": "Analyse languages used in a folder. Powered by GitHub Linguist, although it doesn't need to be installed.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"download-files": "npx tsx@2 build/download-files",
|
|
15
|
-
"
|
|
16
|
-
"perf": "tsc && node test/perf",
|
|
15
|
+
"pre-publish": "npm run download-files && npm test && npm run test:perf",
|
|
16
|
+
"test:perf": "tsc && node test/perf",
|
|
17
17
|
"test": "tsc && node test/folder && echo --- && node test/unit"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
"homepage": "https://github.com/Nixinova/Linguist#readme",
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"binary-extensions": "^2.2.0",
|
|
43
|
-
"commander": "^9.
|
|
43
|
+
"commander": "^9.5.0",
|
|
44
44
|
"common-path-prefix": "^3.0.0",
|
|
45
45
|
"cross-fetch": "^3.1.5",
|
|
46
|
-
"ignore": "^5.2.
|
|
47
|
-
"isbinaryfile": "^4.0.8",
|
|
46
|
+
"ignore": "^5.2.4",
|
|
47
|
+
"isbinaryfile": "^4.0.8 <5",
|
|
48
48
|
"js-yaml": "^4.1.0",
|
|
49
49
|
"node-cache": "^5.1.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/js-yaml": "^4.0.5",
|
|
53
|
-
"@types/node": "ts4.
|
|
54
|
-
"deep-object-diff": "^1.1.
|
|
55
|
-
"typescript": "~4.
|
|
53
|
+
"@types/node": "ts4.9",
|
|
54
|
+
"deep-object-diff": "^1.1.9",
|
|
55
|
+
"typescript": "~4.9.4"
|
|
56
56
|
}
|
|
57
57
|
}
|