linguist-js 2.9.1 → 2.9.2
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/helpers/read-file.js +1 -1
- package/ext/heuristics.yml +1 -1
- package/ext/languages.yml +55 -9
- package/package.json +2 -2
|
@@ -15,7 +15,7 @@ async function readFileChunk(filename, onlyFirstLine = false) {
|
|
|
15
15
|
let content = '';
|
|
16
16
|
for await (const data of stream) { // may throw
|
|
17
17
|
content += data.toString();
|
|
18
|
-
if (onlyFirstLine
|
|
18
|
+
if (onlyFirstLine) {
|
|
19
19
|
return content.split(/\r?\n/)[0];
|
|
20
20
|
}
|
|
21
21
|
}
|
package/ext/heuristics.yml
CHANGED
|
@@ -824,7 +824,7 @@ disambiguations:
|
|
|
824
824
|
pattern: '^\[InternetShortcut\](?:\r?\n|\r)([^\s\[][^\r\n]*(?:\r?\n|\r)){0,20}URL='
|
|
825
825
|
- extensions: ['.v']
|
|
826
826
|
rules:
|
|
827
|
-
- language:
|
|
827
|
+
- language: Rocq Prover
|
|
828
828
|
pattern: '(?:^|\s)(?:Proof|Qed)\.(?:$|\s)|(?:^|\s)Require[ \t]+(Import|Export)\s'
|
|
829
829
|
- language: Verilog
|
|
830
830
|
pattern: '^[ \t]*module\s+[^\s()]+\s+\#?\(|^[ \t]*`(?:define|ifdef|ifndef|include|timescale)|^[ \t]*always[ \t]+@|^[ \t]*initial[ \t]+(begin|@)'
|
package/ext/languages.yml
CHANGED
|
@@ -1307,15 +1307,6 @@ Cool:
|
|
|
1307
1307
|
tm_scope: source.cool
|
|
1308
1308
|
ace_mode: text
|
|
1309
1309
|
language_id: 68
|
|
1310
|
-
Coq:
|
|
1311
|
-
type: programming
|
|
1312
|
-
color: "#d0b68c"
|
|
1313
|
-
extensions:
|
|
1314
|
-
- ".coq"
|
|
1315
|
-
- ".v"
|
|
1316
|
-
tm_scope: source.coq
|
|
1317
|
-
ace_mode: text
|
|
1318
|
-
language_id: 69
|
|
1319
1310
|
Cpp-ObjDump:
|
|
1320
1311
|
type: data
|
|
1321
1312
|
extensions:
|
|
@@ -2755,6 +2746,16 @@ HCL:
|
|
|
2755
2746
|
codemirror_mime_type: text/x-ruby
|
|
2756
2747
|
tm_scope: source.hcl
|
|
2757
2748
|
language_id: 144
|
|
2749
|
+
HIP:
|
|
2750
|
+
type: programming
|
|
2751
|
+
color: "#4F3A4F"
|
|
2752
|
+
extensions:
|
|
2753
|
+
- ".hip"
|
|
2754
|
+
tm_scope: source.c++
|
|
2755
|
+
ace_mode: c_cpp
|
|
2756
|
+
codemirror_mode: clike
|
|
2757
|
+
codemirror_mime_type: text/x-c++src
|
|
2758
|
+
language_id: 674379998
|
|
2758
2759
|
HLSL:
|
|
2759
2760
|
type: programming
|
|
2760
2761
|
color: "#aace60"
|
|
@@ -3728,6 +3729,7 @@ KiCad Schematic:
|
|
|
3728
3729
|
- eeschema schematic
|
|
3729
3730
|
extensions:
|
|
3730
3731
|
- ".kicad_sch"
|
|
3732
|
+
- ".kicad_sym"
|
|
3731
3733
|
- ".sch"
|
|
3732
3734
|
tm_scope: source.pcb.schematic
|
|
3733
3735
|
ace_mode: text
|
|
@@ -3748,6 +3750,16 @@ Kit:
|
|
|
3748
3750
|
- ".kit"
|
|
3749
3751
|
tm_scope: text.html.basic
|
|
3750
3752
|
language_id: 188
|
|
3753
|
+
Koka:
|
|
3754
|
+
type: programming
|
|
3755
|
+
ace_mode: text
|
|
3756
|
+
extensions:
|
|
3757
|
+
- ".kk"
|
|
3758
|
+
interpreters:
|
|
3759
|
+
- koka
|
|
3760
|
+
color: "#215166"
|
|
3761
|
+
tm_scope: source.koka
|
|
3762
|
+
language_id: 597930447
|
|
3751
3763
|
Kotlin:
|
|
3752
3764
|
type: programming
|
|
3753
3765
|
color: "#A97BFF"
|
|
@@ -4103,6 +4115,18 @@ M:
|
|
|
4103
4115
|
codemirror_mime_type: text/x-mumps
|
|
4104
4116
|
language_id: 214
|
|
4105
4117
|
tm_scope: none
|
|
4118
|
+
M3U:
|
|
4119
|
+
type: data
|
|
4120
|
+
aliases:
|
|
4121
|
+
- hls playlist
|
|
4122
|
+
- m3u playlist
|
|
4123
|
+
extensions:
|
|
4124
|
+
- ".m3u"
|
|
4125
|
+
- ".m3u8"
|
|
4126
|
+
color: "#179C7D"
|
|
4127
|
+
tm_scope: source.m3u
|
|
4128
|
+
ace_mode: text
|
|
4129
|
+
language_id: 89638692
|
|
4106
4130
|
M4:
|
|
4107
4131
|
type: programming
|
|
4108
4132
|
extensions:
|
|
@@ -5849,6 +5873,7 @@ Python:
|
|
|
5849
5873
|
- py
|
|
5850
5874
|
- pypy
|
|
5851
5875
|
- pypy3
|
|
5876
|
+
- uv
|
|
5852
5877
|
aliases:
|
|
5853
5878
|
- python3
|
|
5854
5879
|
- rusthon
|
|
@@ -6322,6 +6347,18 @@ Roc:
|
|
|
6322
6347
|
tm_scope: source.roc
|
|
6323
6348
|
ace_mode: text
|
|
6324
6349
|
language_id: 440182480
|
|
6350
|
+
Rocq Prover:
|
|
6351
|
+
type: programming
|
|
6352
|
+
color: "#d0b68c"
|
|
6353
|
+
extensions:
|
|
6354
|
+
- ".v"
|
|
6355
|
+
- ".coq"
|
|
6356
|
+
aliases:
|
|
6357
|
+
- coq
|
|
6358
|
+
- rocq
|
|
6359
|
+
tm_scope: source.coq
|
|
6360
|
+
ace_mode: text
|
|
6361
|
+
language_id: 69
|
|
6325
6362
|
Roff:
|
|
6326
6363
|
type: markup
|
|
6327
6364
|
color: "#ecdebe"
|
|
@@ -6549,6 +6586,7 @@ SMT:
|
|
|
6549
6586
|
extensions:
|
|
6550
6587
|
- ".smt2"
|
|
6551
6588
|
- ".smt"
|
|
6589
|
+
- ".z3"
|
|
6552
6590
|
interpreters:
|
|
6553
6591
|
- boolector
|
|
6554
6592
|
- cvc4
|
|
@@ -6695,6 +6733,14 @@ Sage:
|
|
|
6695
6733
|
codemirror_mode: python
|
|
6696
6734
|
codemirror_mime_type: text/x-python
|
|
6697
6735
|
language_id: 338
|
|
6736
|
+
Sail:
|
|
6737
|
+
type: programming
|
|
6738
|
+
color: "#259dd5"
|
|
6739
|
+
ace_mode: text
|
|
6740
|
+
extensions:
|
|
6741
|
+
- ".sail"
|
|
6742
|
+
tm_scope: source.sail
|
|
6743
|
+
language_id: 1029438153
|
|
6698
6744
|
SaltStack:
|
|
6699
6745
|
type: programming
|
|
6700
6746
|
color: "#646464"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linguist-js",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.2",
|
|
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": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"commander": "^9.5.0 <10",
|
|
44
44
|
"common-path-prefix": "^3.0.0",
|
|
45
45
|
"cross-fetch": "^3.2.0 <4",
|
|
46
|
-
"ignore": "^7.0.
|
|
46
|
+
"ignore": "^7.0.4",
|
|
47
47
|
"isbinaryfile": "^4.0.10 <5",
|
|
48
48
|
"js-yaml": "^4.1.0",
|
|
49
49
|
"node-cache": "^5.1.2"
|