tree-sitter-ssh-client-config 2023.3.21 → 2023.3.23

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 CHANGED
@@ -319,7 +319,8 @@ module.exports = grammar({
319
319
  'EnableEscapeCommandline',
320
320
  $.enable_escape_commandline_value
321
321
  ),
322
- enable_escape_commandline_value: $ => alias($.boolean, "enable_escape_commandline_value"),
322
+ enable_escape_commandline_value: $ => alias($.boolean,
323
+ "enable_escape_commandline_value"),
323
324
 
324
325
  enable_ssh_keysign: $ => option(
325
326
  'EnableSSHKeysign',
@@ -828,7 +829,12 @@ module.exports = grammar({
828
829
  'Tunnel',
829
830
  $.tunnel_value
830
831
  ),
831
- tunnel_value: $ => choice('yes', 'no', 'point-to-point', 'ethernet'),
832
+ tunnel_value: $ => choice(
833
+ ignoreCase('yes'),
834
+ ignoreCase('no'),
835
+ ignoreCase('point-to-point'),
836
+ ignoreCase('ethernet'),
837
+ ),
832
838
 
833
839
  tunnel_device: $ => option(
834
840
  'TunnelDevice',
@@ -924,7 +930,12 @@ function reserved(regex) {
924
930
 
925
931
  function caseInsensitive(word) {
926
932
  return word
927
- .split('')
928
- .map(letter => `[${letter.toLowerCase()}${letter.toUpperCase()}]`)
929
- .join('')
933
+ .split('')
934
+ .map(letter => {
935
+ if (letter.toLowerCase() === letter.toUpperCase()) {
936
+ return `[${letter}]`
937
+ }
938
+ return `[${letter.toLowerCase()}${letter.toUpperCase()}]`
939
+ })
940
+ .join('')
930
941
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tree-sitter-ssh-client-config",
3
- "version": "2023.3.21",
3
+ "version": "2023.3.23",
4
4
  "description": "tree-sitter grammar for SSH client configuration files",
5
5
  "keywords": [
6
6
  "parser",
package/src/grammar.json CHANGED
@@ -837,7 +837,7 @@
837
837
  },
838
838
  {
839
839
  "type": "PATTERN",
840
- "value": "[iI][nN][eE][tT][66]"
840
+ "value": "[iI][nN][eE][tT][6]"
841
841
  }
842
842
  ]
843
843
  },
@@ -3266,7 +3266,7 @@
3266
3266
  "value": 1,
3267
3267
  "content": {
3268
3268
  "type": "PATTERN",
3269
- "value": "[fF][oO][rR][wW][aA][rR][dD][xX][11][11]"
3269
+ "value": "[fF][oO][rR][wW][aA][rR][dD][xX][1][1]"
3270
3270
  }
3271
3271
  }
3272
3272
  },
@@ -3349,7 +3349,7 @@
3349
3349
  "value": 1,
3350
3350
  "content": {
3351
3351
  "type": "PATTERN",
3352
- "value": "[fF][oO][rR][wW][aA][rR][dD][xX][11][11][tT][iI][mM][eE][oO][uU][tT]"
3352
+ "value": "[fF][oO][rR][wW][aA][rR][dD][xX][1][1][tT][iI][mM][eE][oO][uU][tT]"
3353
3353
  }
3354
3354
  }
3355
3355
  },
@@ -3432,7 +3432,7 @@
3432
3432
  "value": 1,
3433
3433
  "content": {
3434
3434
  "type": "PATTERN",
3435
- "value": "[fF][oO][rR][wW][aA][rR][dD][xX][11][11][tT][rR][uU][sS][tT][eE][dD]"
3435
+ "value": "[fF][oO][rR][wW][aA][rR][dD][xX][1][1][tT][rR][uU][sS][tT][eE][dD]"
3436
3436
  }
3437
3437
  }
3438
3438
  },
@@ -5954,15 +5954,15 @@
5954
5954
  },
5955
5955
  {
5956
5956
  "type": "PATTERN",
5957
- "value": "[dD][eE][bB][uU][gG][11]"
5957
+ "value": "[dD][eE][bB][uU][gG][1]"
5958
5958
  },
5959
5959
  {
5960
5960
  "type": "PATTERN",
5961
- "value": "[dD][eE][bB][uU][gG][22]"
5961
+ "value": "[dD][eE][bB][uU][gG][2]"
5962
5962
  },
5963
5963
  {
5964
5964
  "type": "PATTERN",
5965
- "value": "[dD][eE][bB][uU][gG][33]"
5965
+ "value": "[dD][eE][bB][uU][gG][3]"
5966
5966
  }
5967
5967
  ]
5968
5968
  },
@@ -6544,7 +6544,7 @@
6544
6544
  "value": 1,
6545
6545
  "content": {
6546
6546
  "type": "PATTERN",
6547
- "value": "[pP][kK][cC][sS][11][11][pP][rR][oO][vV][iI][dD][eE][rR]"
6547
+ "value": "[pP][kK][cC][sS][1][1][pP][rR][oO][vV][iI][dD][eE][rR]"
6548
6548
  }
6549
6549
  }
6550
6550
  },
@@ -7352,7 +7352,7 @@
7352
7352
  },
7353
7353
  {
7354
7354
  "type": "PATTERN",
7355
- "value": "[hH][oO][sS][tT][--][bB][oO][uU][nN][dD]"
7355
+ "value": "[hH][oO][sS][tT][-][bB][oO][uU][nN][dD]"
7356
7356
  }
7357
7357
  ]
7358
7358
  },
@@ -8692,7 +8692,7 @@
8692
8692
  },
8693
8693
  {
8694
8694
  "type": "PATTERN",
8695
- "value": "[aA][cC][cC][eE][pP][tT][--][nN][eE][wW]"
8695
+ "value": "[aA][cC][cC][eE][pP][tT][-][nN][eE][wW]"
8696
8696
  }
8697
8697
  ]
8698
8698
  },
@@ -9063,20 +9063,20 @@
9063
9063
  "type": "CHOICE",
9064
9064
  "members": [
9065
9065
  {
9066
- "type": "STRING",
9067
- "value": "yes"
9066
+ "type": "PATTERN",
9067
+ "value": "[yY][eE][sS]"
9068
9068
  },
9069
9069
  {
9070
- "type": "STRING",
9071
- "value": "no"
9070
+ "type": "PATTERN",
9071
+ "value": "[nN][oO]"
9072
9072
  },
9073
9073
  {
9074
- "type": "STRING",
9075
- "value": "point-to-point"
9074
+ "type": "PATTERN",
9075
+ "value": "[pP][oO][iI][nN][tT][-][tT][oO][-][pP][oO][iI][nN][tT]"
9076
9076
  },
9077
9077
  {
9078
- "type": "STRING",
9079
- "value": "ethernet"
9078
+ "type": "PATTERN",
9079
+ "value": "[eE][tT][hH][eE][rR][nN][eE][tT]"
9080
9080
  }
9081
9081
  ]
9082
9082
  },
@@ -3198,10 +3198,6 @@
3198
3198
  "type": "control_persist_value",
3199
3199
  "named": false
3200
3200
  },
3201
- {
3202
- "type": "ethernet",
3203
- "named": false
3204
- },
3205
3201
  {
3206
3202
  "type": "forward_x11_timeout_value",
3207
3203
  "named": false
@@ -3214,10 +3210,6 @@
3214
3210
  "type": "md5",
3215
3211
  "named": false
3216
3212
  },
3217
- {
3218
- "type": "no",
3219
- "named": false
3220
- },
3221
3213
  {
3222
3214
  "type": "none",
3223
3215
  "named": false
@@ -3226,10 +3218,6 @@
3226
3218
  "type": "number_of_password_prompts_value",
3227
3219
  "named": false
3228
3220
  },
3229
- {
3230
- "type": "point-to-point",
3231
- "named": false
3232
- },
3233
3221
  {
3234
3222
  "type": "port_value",
3235
3223
  "named": false
@@ -3249,9 +3237,5 @@
3249
3237
  {
3250
3238
  "type": "sha256",
3251
3239
  "named": false
3252
- },
3253
- {
3254
- "type": "yes",
3255
- "named": false
3256
3240
  }
3257
3241
  ]