tree-sitter-ssh-client-config 2025.1.2 → 2025.1.16
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/grammar.js +7 -0
- package/package.json +6 -14
- package/queries/highlights.scm +3 -0
- package/src/grammar.json +83 -0
- package/src/node-types.json +29 -0
- package/src/parser.c +105427 -103618
- package/src/tree_sitter/alloc.h +4 -4
- package/src/tree_sitter/array.h +2 -1
- package/src/tree_sitter/parser.h +1 -0
package/grammar.js
CHANGED
|
@@ -122,6 +122,7 @@ module.exports = grammar({
|
|
|
122
122
|
$.user,
|
|
123
123
|
$.user_known_hosts_file,
|
|
124
124
|
$.verify_host_key_dns,
|
|
125
|
+
$.version_addendum,
|
|
125
126
|
$.visual_host_key,
|
|
126
127
|
$.xauth_location,
|
|
127
128
|
),
|
|
@@ -925,6 +926,12 @@ module.exports = grammar({
|
|
|
925
926
|
ignoreCase('ask'),
|
|
926
927
|
),
|
|
927
928
|
|
|
929
|
+
version_addendum: $ => option(
|
|
930
|
+
'VersionAddendum',
|
|
931
|
+
$.version_addendum_value
|
|
932
|
+
),
|
|
933
|
+
version_addendum_value: $ => /\S.*/,
|
|
934
|
+
|
|
928
935
|
visual_host_key: $ => option(
|
|
929
936
|
'VisualHostKey',
|
|
930
937
|
$.visual_host_key_value
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tree-sitter-ssh-client-config",
|
|
3
|
-
"version": "2025.1.
|
|
3
|
+
"version": "2025.1.16",
|
|
4
4
|
"description": "tree-sitter grammar for SSH client configuration files",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"parser",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"contributors": [],
|
|
34
34
|
"license": "CC0-1.0",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"node-addon-api": "^
|
|
37
|
-
"node-gyp-build": "^4.8.
|
|
36
|
+
"node-addon-api": "^8.3.0",
|
|
37
|
+
"node-gyp-build": "^4.8.4"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"tree-sitter": "^0.
|
|
40
|
+
"tree-sitter": "^0.22.4"
|
|
41
41
|
},
|
|
42
42
|
"peerDependenciesMeta": {
|
|
43
43
|
"tree_sitter": {
|
|
@@ -45,17 +45,9 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"tree-sitter-cli": "0.
|
|
49
|
-
"prebuildify": "^6.0.
|
|
48
|
+
"tree-sitter-cli": "0.24.7",
|
|
49
|
+
"prebuildify": "^6.0.1"
|
|
50
50
|
},
|
|
51
|
-
"tree-sitter": [
|
|
52
|
-
{
|
|
53
|
-
"scope": "text.ssh_client_config",
|
|
54
|
-
"file-types": [
|
|
55
|
-
"config"
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
51
|
"files": [
|
|
60
52
|
"/bindings/node/",
|
|
61
53
|
"/queries/",
|
package/queries/highlights.scm
CHANGED
|
@@ -337,6 +337,9 @@
|
|
|
337
337
|
(verify_host_key_dns) @keyword
|
|
338
338
|
(verify_host_key_dns_value) @constant.builtin.string
|
|
339
339
|
|
|
340
|
+
(version_addendum) @keyword
|
|
341
|
+
(version_addendum_value) @constant.builtin.string
|
|
342
|
+
|
|
340
343
|
(visual_host_key) @keyword
|
|
341
344
|
(visual_host_key_value) @constant.builtin.boolean
|
|
342
345
|
|
package/src/grammar.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/grammar.schema.json",
|
|
2
3
|
"name": "ssh_client_config",
|
|
3
4
|
"rules": {
|
|
4
5
|
"client_config": {
|
|
@@ -459,6 +460,10 @@
|
|
|
459
460
|
"type": "SYMBOL",
|
|
460
461
|
"name": "verify_host_key_dns"
|
|
461
462
|
},
|
|
463
|
+
{
|
|
464
|
+
"type": "SYMBOL",
|
|
465
|
+
"name": "version_addendum"
|
|
466
|
+
},
|
|
462
467
|
{
|
|
463
468
|
"type": "SYMBOL",
|
|
464
469
|
"name": "visual_host_key"
|
|
@@ -9990,6 +9995,84 @@
|
|
|
9990
9995
|
}
|
|
9991
9996
|
]
|
|
9992
9997
|
},
|
|
9998
|
+
"version_addendum": {
|
|
9999
|
+
"type": "SEQ",
|
|
10000
|
+
"members": [
|
|
10001
|
+
{
|
|
10002
|
+
"type": "ALIAS",
|
|
10003
|
+
"content": {
|
|
10004
|
+
"type": "TOKEN",
|
|
10005
|
+
"content": {
|
|
10006
|
+
"type": "PREC",
|
|
10007
|
+
"value": 1,
|
|
10008
|
+
"content": {
|
|
10009
|
+
"type": "PATTERN",
|
|
10010
|
+
"value": "[vV][eE][rR][sS][iI][oO][nN][aA][dD][dD][eE][nN][dD][uU][mM]"
|
|
10011
|
+
}
|
|
10012
|
+
}
|
|
10013
|
+
},
|
|
10014
|
+
"named": false,
|
|
10015
|
+
"value": "VersionAddendum"
|
|
10016
|
+
},
|
|
10017
|
+
{
|
|
10018
|
+
"type": "CHOICE",
|
|
10019
|
+
"members": [
|
|
10020
|
+
{
|
|
10021
|
+
"type": "PATTERN",
|
|
10022
|
+
"value": "[ \\t]"
|
|
10023
|
+
},
|
|
10024
|
+
{
|
|
10025
|
+
"type": "STRING",
|
|
10026
|
+
"value": "="
|
|
10027
|
+
}
|
|
10028
|
+
]
|
|
10029
|
+
},
|
|
10030
|
+
{
|
|
10031
|
+
"type": "CHOICE",
|
|
10032
|
+
"members": [
|
|
10033
|
+
{
|
|
10034
|
+
"type": "STRING",
|
|
10035
|
+
"value": "="
|
|
10036
|
+
},
|
|
10037
|
+
{
|
|
10038
|
+
"type": "BLANK"
|
|
10039
|
+
}
|
|
10040
|
+
]
|
|
10041
|
+
},
|
|
10042
|
+
{
|
|
10043
|
+
"type": "CHOICE",
|
|
10044
|
+
"members": [
|
|
10045
|
+
{
|
|
10046
|
+
"type": "STRING",
|
|
10047
|
+
"value": "\""
|
|
10048
|
+
},
|
|
10049
|
+
{
|
|
10050
|
+
"type": "BLANK"
|
|
10051
|
+
}
|
|
10052
|
+
]
|
|
10053
|
+
},
|
|
10054
|
+
{
|
|
10055
|
+
"type": "SYMBOL",
|
|
10056
|
+
"name": "version_addendum_value"
|
|
10057
|
+
},
|
|
10058
|
+
{
|
|
10059
|
+
"type": "CHOICE",
|
|
10060
|
+
"members": [
|
|
10061
|
+
{
|
|
10062
|
+
"type": "STRING",
|
|
10063
|
+
"value": "\""
|
|
10064
|
+
},
|
|
10065
|
+
{
|
|
10066
|
+
"type": "BLANK"
|
|
10067
|
+
}
|
|
10068
|
+
]
|
|
10069
|
+
}
|
|
10070
|
+
]
|
|
10071
|
+
},
|
|
10072
|
+
"version_addendum_value": {
|
|
10073
|
+
"type": "PATTERN",
|
|
10074
|
+
"value": "\\S.*"
|
|
10075
|
+
},
|
|
9993
10076
|
"visual_host_key": {
|
|
9994
10077
|
"type": "SEQ",
|
|
9995
10078
|
"members": [
|
package/src/node-types.json
CHANGED
|
@@ -366,6 +366,7 @@
|
|
|
366
366
|
{
|
|
367
367
|
"type": "client_config",
|
|
368
368
|
"named": true,
|
|
369
|
+
"root": true,
|
|
369
370
|
"fields": {},
|
|
370
371
|
"children": {
|
|
371
372
|
"multiple": true,
|
|
@@ -819,6 +820,10 @@
|
|
|
819
820
|
"type": "verify_host_key_dns",
|
|
820
821
|
"named": true
|
|
821
822
|
},
|
|
823
|
+
{
|
|
824
|
+
"type": "version_addendum",
|
|
825
|
+
"named": true
|
|
826
|
+
},
|
|
822
827
|
{
|
|
823
828
|
"type": "visual_host_key",
|
|
824
829
|
"named": true
|
|
@@ -2710,6 +2715,26 @@
|
|
|
2710
2715
|
"named": true,
|
|
2711
2716
|
"fields": {}
|
|
2712
2717
|
},
|
|
2718
|
+
{
|
|
2719
|
+
"type": "version_addendum",
|
|
2720
|
+
"named": true,
|
|
2721
|
+
"fields": {},
|
|
2722
|
+
"children": {
|
|
2723
|
+
"multiple": false,
|
|
2724
|
+
"required": true,
|
|
2725
|
+
"types": [
|
|
2726
|
+
{
|
|
2727
|
+
"type": "version_addendum_value",
|
|
2728
|
+
"named": true
|
|
2729
|
+
}
|
|
2730
|
+
]
|
|
2731
|
+
}
|
|
2732
|
+
},
|
|
2733
|
+
{
|
|
2734
|
+
"type": "version_addendum_value",
|
|
2735
|
+
"named": true,
|
|
2736
|
+
"fields": {}
|
|
2737
|
+
},
|
|
2713
2738
|
{
|
|
2714
2739
|
"type": "visual_host_key",
|
|
2715
2740
|
"named": true,
|
|
@@ -3258,6 +3283,10 @@
|
|
|
3258
3283
|
"type": "VerifyHostKeyDNS",
|
|
3259
3284
|
"named": false
|
|
3260
3285
|
},
|
|
3286
|
+
{
|
|
3287
|
+
"type": "VersionAddendum",
|
|
3288
|
+
"named": false
|
|
3289
|
+
},
|
|
3261
3290
|
{
|
|
3262
3291
|
"type": "VisualHostKey",
|
|
3263
3292
|
"named": false
|