tree-sitter-ssh-client-config 2023.2.2 → 2023.2.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 +8 -0
- package/package.json +1 -1
- package/queries/highlights.scm +3 -0
- package/src/grammar.json +87 -0
- package/src/node-types.json +32 -0
- package/src/parser.c +96601 -94860
package/grammar.js
CHANGED
|
@@ -95,6 +95,7 @@ module.exports = grammar({
|
|
|
95
95
|
$.remote_command,
|
|
96
96
|
$.remote_forward,
|
|
97
97
|
$.request_tty,
|
|
98
|
+
$.required_rsa_size,
|
|
98
99
|
$.revoked_host_keys,
|
|
99
100
|
$.security_key_provider,
|
|
100
101
|
$.send_env,
|
|
@@ -709,6 +710,13 @@ module.exports = grammar({
|
|
|
709
710
|
ignoreCase('force'),
|
|
710
711
|
),
|
|
711
712
|
|
|
713
|
+
required_rsa_size: $ => option(
|
|
714
|
+
'RequiredRSASize',
|
|
715
|
+
$.required_rsa_size_value
|
|
716
|
+
),
|
|
717
|
+
required_rsa_size_value: $ => alias($.number,
|
|
718
|
+
"required_rsa_size_value"),
|
|
719
|
+
|
|
712
720
|
revoked_host_keys: $ => option(
|
|
713
721
|
'RevokedHostKeys',
|
|
714
722
|
$.revoked_host_keys_value
|
package/package.json
CHANGED
package/queries/highlights.scm
CHANGED
|
@@ -255,6 +255,9 @@
|
|
|
255
255
|
(request_tty) @keyword
|
|
256
256
|
(request_tty_value) @constant.builtin.string
|
|
257
257
|
|
|
258
|
+
(required_rsa_size) @keyword
|
|
259
|
+
(required_rsa_size_value) @constant.numeric.integer
|
|
260
|
+
|
|
258
261
|
(revoked_host_keys) @keyword
|
|
259
262
|
(revoked_host_keys_value) @string.special.path
|
|
260
263
|
|
package/src/grammar.json
CHANGED
|
@@ -351,6 +351,10 @@
|
|
|
351
351
|
"type": "SYMBOL",
|
|
352
352
|
"name": "request_tty"
|
|
353
353
|
},
|
|
354
|
+
{
|
|
355
|
+
"type": "SYMBOL",
|
|
356
|
+
"name": "required_rsa_size"
|
|
357
|
+
},
|
|
354
358
|
{
|
|
355
359
|
"type": "SYMBOL",
|
|
356
360
|
"name": "revoked_host_keys"
|
|
@@ -7602,6 +7606,89 @@
|
|
|
7602
7606
|
}
|
|
7603
7607
|
]
|
|
7604
7608
|
},
|
|
7609
|
+
"required_rsa_size": {
|
|
7610
|
+
"type": "SEQ",
|
|
7611
|
+
"members": [
|
|
7612
|
+
{
|
|
7613
|
+
"type": "ALIAS",
|
|
7614
|
+
"content": {
|
|
7615
|
+
"type": "TOKEN",
|
|
7616
|
+
"content": {
|
|
7617
|
+
"type": "PREC",
|
|
7618
|
+
"value": 1,
|
|
7619
|
+
"content": {
|
|
7620
|
+
"type": "PATTERN",
|
|
7621
|
+
"value": "[rR][eE][qQ][uU][iI][rR][eE][dD][rR][sS][aA][sS][iI][zZ][eE]"
|
|
7622
|
+
}
|
|
7623
|
+
}
|
|
7624
|
+
},
|
|
7625
|
+
"named": false,
|
|
7626
|
+
"value": "RequiredRSASize"
|
|
7627
|
+
},
|
|
7628
|
+
{
|
|
7629
|
+
"type": "CHOICE",
|
|
7630
|
+
"members": [
|
|
7631
|
+
{
|
|
7632
|
+
"type": "PATTERN",
|
|
7633
|
+
"value": "[ \\t]"
|
|
7634
|
+
},
|
|
7635
|
+
{
|
|
7636
|
+
"type": "STRING",
|
|
7637
|
+
"value": "="
|
|
7638
|
+
}
|
|
7639
|
+
]
|
|
7640
|
+
},
|
|
7641
|
+
{
|
|
7642
|
+
"type": "CHOICE",
|
|
7643
|
+
"members": [
|
|
7644
|
+
{
|
|
7645
|
+
"type": "STRING",
|
|
7646
|
+
"value": "="
|
|
7647
|
+
},
|
|
7648
|
+
{
|
|
7649
|
+
"type": "BLANK"
|
|
7650
|
+
}
|
|
7651
|
+
]
|
|
7652
|
+
},
|
|
7653
|
+
{
|
|
7654
|
+
"type": "CHOICE",
|
|
7655
|
+
"members": [
|
|
7656
|
+
{
|
|
7657
|
+
"type": "STRING",
|
|
7658
|
+
"value": "\""
|
|
7659
|
+
},
|
|
7660
|
+
{
|
|
7661
|
+
"type": "BLANK"
|
|
7662
|
+
}
|
|
7663
|
+
]
|
|
7664
|
+
},
|
|
7665
|
+
{
|
|
7666
|
+
"type": "SYMBOL",
|
|
7667
|
+
"name": "required_rsa_size_value"
|
|
7668
|
+
},
|
|
7669
|
+
{
|
|
7670
|
+
"type": "CHOICE",
|
|
7671
|
+
"members": [
|
|
7672
|
+
{
|
|
7673
|
+
"type": "STRING",
|
|
7674
|
+
"value": "\""
|
|
7675
|
+
},
|
|
7676
|
+
{
|
|
7677
|
+
"type": "BLANK"
|
|
7678
|
+
}
|
|
7679
|
+
]
|
|
7680
|
+
}
|
|
7681
|
+
]
|
|
7682
|
+
},
|
|
7683
|
+
"required_rsa_size_value": {
|
|
7684
|
+
"type": "ALIAS",
|
|
7685
|
+
"content": {
|
|
7686
|
+
"type": "SYMBOL",
|
|
7687
|
+
"name": "number"
|
|
7688
|
+
},
|
|
7689
|
+
"named": false,
|
|
7690
|
+
"value": "required_rsa_size_value"
|
|
7691
|
+
},
|
|
7605
7692
|
"revoked_host_keys": {
|
|
7606
7693
|
"type": "SEQ",
|
|
7607
7694
|
"members": [
|
package/src/node-types.json
CHANGED
|
@@ -691,6 +691,10 @@
|
|
|
691
691
|
"type": "request_tty",
|
|
692
692
|
"named": true
|
|
693
693
|
},
|
|
694
|
+
{
|
|
695
|
+
"type": "required_rsa_size",
|
|
696
|
+
"named": true
|
|
697
|
+
},
|
|
694
698
|
{
|
|
695
699
|
"type": "revoked_host_keys",
|
|
696
700
|
"named": true
|
|
@@ -2166,6 +2170,26 @@
|
|
|
2166
2170
|
"named": true,
|
|
2167
2171
|
"fields": {}
|
|
2168
2172
|
},
|
|
2173
|
+
{
|
|
2174
|
+
"type": "required_rsa_size",
|
|
2175
|
+
"named": true,
|
|
2176
|
+
"fields": {},
|
|
2177
|
+
"children": {
|
|
2178
|
+
"multiple": false,
|
|
2179
|
+
"required": true,
|
|
2180
|
+
"types": [
|
|
2181
|
+
{
|
|
2182
|
+
"type": "required_rsa_size_value",
|
|
2183
|
+
"named": true
|
|
2184
|
+
}
|
|
2185
|
+
]
|
|
2186
|
+
}
|
|
2187
|
+
},
|
|
2188
|
+
{
|
|
2189
|
+
"type": "required_rsa_size_value",
|
|
2190
|
+
"named": true,
|
|
2191
|
+
"fields": {}
|
|
2192
|
+
},
|
|
2169
2193
|
{
|
|
2170
2194
|
"type": "revoked_host_keys",
|
|
2171
2195
|
"named": true,
|
|
@@ -3026,6 +3050,10 @@
|
|
|
3026
3050
|
"type": "RequestTTY",
|
|
3027
3051
|
"named": false
|
|
3028
3052
|
},
|
|
3053
|
+
{
|
|
3054
|
+
"type": "RequiredRSASize",
|
|
3055
|
+
"named": false
|
|
3056
|
+
},
|
|
3029
3057
|
{
|
|
3030
3058
|
"type": "RevokedHostKeys",
|
|
3031
3059
|
"named": false
|
|
@@ -3178,6 +3206,10 @@
|
|
|
3178
3206
|
"type": "port_value",
|
|
3179
3207
|
"named": false
|
|
3180
3208
|
},
|
|
3209
|
+
{
|
|
3210
|
+
"type": "required_rsa_size_value",
|
|
3211
|
+
"named": false
|
|
3212
|
+
},
|
|
3181
3213
|
{
|
|
3182
3214
|
"type": "server_alive_count_max_value",
|
|
3183
3215
|
"named": false
|