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

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/binding.gyp CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "targets": [
3
3
  {
4
- "target_name": "tree_sitter_sshclientconfig_binding",
4
+ "target_name": "tree_sitter_ssh_client_config_binding",
5
5
  "include_dirs": [
6
6
  "<!(node -e \"require('nan')\")",
7
7
  "src"
@@ -4,7 +4,7 @@
4
4
 
5
5
  using namespace v8;
6
6
 
7
- extern "C" TSLanguage * tree_sitter_sshclientconfig();
7
+ extern "C" TSLanguage * tree_sitter_ssh_client_config();
8
8
 
9
9
  namespace {
10
10
 
@@ -17,12 +17,12 @@ void Init(Local<Object> exports, Local<Object> module) {
17
17
 
18
18
  Local<Function> constructor = Nan::GetFunction(tpl).ToLocalChecked();
19
19
  Local<Object> instance = constructor->NewInstance(Nan::GetCurrentContext()).ToLocalChecked();
20
- Nan::SetInternalFieldPointer(instance, 0, tree_sitter_sshclientconfig());
20
+ Nan::SetInternalFieldPointer(instance, 0, tree_sitter_ssh_client_config());
21
21
 
22
- Nan::Set(instance, Nan::New("name").ToLocalChecked(), Nan::New("sshclientconfig").ToLocalChecked());
22
+ Nan::Set(instance, Nan::New("name").ToLocalChecked(), Nan::New("ssh-client-config").ToLocalChecked());
23
23
  Nan::Set(module, Nan::New("exports").ToLocalChecked(), instance);
24
24
  }
25
25
 
26
- NODE_MODULE(tree_sitter_sshclientconfig_binding, Init)
26
+ NODE_MODULE(tree_sitter_ssh_client_config_binding, Init)
27
27
 
28
28
  } // namespace
@@ -1,11 +1,11 @@
1
1
  try {
2
- module.exports = require("../../build/Release/tree_sitter_sshclientconfig_binding");
2
+ module.exports = require("../../build/Release/tree_sitter_ssh_client_config_binding");
3
3
  } catch (error1) {
4
4
  if (error1.code !== 'MODULE_NOT_FOUND') {
5
5
  throw error1;
6
6
  }
7
7
  try {
8
- module.exports = require("../../build/Debug/tree_sitter_sshclientconfig_binding");
8
+ module.exports = require("../../build/Debug/tree_sitter_ssh_client_config_binding");
9
9
  } catch (error2) {
10
10
  if (error2.code !== 'MODULE_NOT_FOUND') {
11
11
  throw error2;
package/grammar.js CHANGED
@@ -1,5 +1,5 @@
1
1
  module.exports = grammar({
2
- name: 'sshclientconfig',
2
+ name: 'ssh_client_config',
3
3
 
4
4
  extras: $ => [
5
5
  $.comment,
@@ -36,6 +36,7 @@ module.exports = grammar({
36
36
  $.control_path,
37
37
  $.control_persist,
38
38
  $.dynamic_forward,
39
+ $.enable_escape_commandline,
39
40
  $.enable_ssh_keysign,
40
41
  $.escape_char,
41
42
  $.exit_on_forward_failure,
@@ -314,6 +315,12 @@ module.exports = grammar({
314
315
  ),
315
316
  dynamic_forward_value: $ => /\S.*/,
316
317
 
318
+ enable_escape_commandline: $ => option(
319
+ 'EnableEscapeCommandline',
320
+ $.enable_escape_commandline_value
321
+ ),
322
+ enable_escape_commandline_value: $ => alias($.boolean, "enable_escape_commandline_value"),
323
+
317
324
  enable_ssh_keysign: $ => option(
318
325
  'EnableSSHKeysign',
319
326
  $.enable_ssh_keysign_value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tree-sitter-ssh-client-config",
3
- "version": "2023.2.16",
3
+ "version": "2023.3.21",
4
4
  "description": "tree-sitter grammar for SSH client configuration files",
5
5
  "keywords": [
6
6
  "parser",
@@ -24,16 +24,16 @@
24
24
  },
25
25
  "author": {
26
26
  "name": "Sebastian Hoß",
27
- "email": "seb@hoß.de",
28
- "url": "https://seb.people.metio.wtf/"
27
+ "email": "seb@xn--ho-hia.de",
28
+ "url": "https://seb.xn--ho-hia.de/"
29
29
  },
30
30
  "contributors": [],
31
31
  "license": "CC0-1.0",
32
32
  "dependencies": {
33
- "nan": "^2.17.0"
33
+ "nan": "2.17.0"
34
34
  },
35
35
  "devDependencies": {
36
- "tree-sitter-cli": "^0.20.7"
36
+ "tree-sitter-cli": "0.20.7"
37
37
  },
38
38
  "tree-sitter": [
39
39
  {
@@ -78,6 +78,9 @@
78
78
  (dynamic_forward) @keyword
79
79
  (dynamic_forward_value) @string
80
80
 
81
+ (enable_escape_commandline) @keyword
82
+ (enable_escape_commandline_value) @constant.builtin.boolean
83
+
81
84
  (enable_ssh_keysign) @keyword
82
85
  (enable_ssh_keysign_value) @constant.builtin.boolean
83
86
 
package/src/grammar.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "sshclientconfig",
2
+ "name": "ssh_client_config",
3
3
  "rules": {
4
4
  "client_config": {
5
5
  "type": "REPEAT",
@@ -115,6 +115,10 @@
115
115
  "type": "SYMBOL",
116
116
  "name": "dynamic_forward"
117
117
  },
118
+ {
119
+ "type": "SYMBOL",
120
+ "name": "enable_escape_commandline"
121
+ },
118
122
  {
119
123
  "type": "SYMBOL",
120
124
  "name": "enable_ssh_keysign"
@@ -2666,6 +2670,89 @@
2666
2670
  "type": "PATTERN",
2667
2671
  "value": "\\S.*"
2668
2672
  },
2673
+ "enable_escape_commandline": {
2674
+ "type": "SEQ",
2675
+ "members": [
2676
+ {
2677
+ "type": "ALIAS",
2678
+ "content": {
2679
+ "type": "TOKEN",
2680
+ "content": {
2681
+ "type": "PREC",
2682
+ "value": 1,
2683
+ "content": {
2684
+ "type": "PATTERN",
2685
+ "value": "[eE][nN][aA][bB][lL][eE][eE][sS][cC][aA][pP][eE][cC][oO][mM][mM][aA][nN][dD][lL][iI][nN][eE]"
2686
+ }
2687
+ }
2688
+ },
2689
+ "named": false,
2690
+ "value": "EnableEscapeCommandline"
2691
+ },
2692
+ {
2693
+ "type": "CHOICE",
2694
+ "members": [
2695
+ {
2696
+ "type": "PATTERN",
2697
+ "value": "[ \\t]"
2698
+ },
2699
+ {
2700
+ "type": "STRING",
2701
+ "value": "="
2702
+ }
2703
+ ]
2704
+ },
2705
+ {
2706
+ "type": "CHOICE",
2707
+ "members": [
2708
+ {
2709
+ "type": "STRING",
2710
+ "value": "="
2711
+ },
2712
+ {
2713
+ "type": "BLANK"
2714
+ }
2715
+ ]
2716
+ },
2717
+ {
2718
+ "type": "CHOICE",
2719
+ "members": [
2720
+ {
2721
+ "type": "STRING",
2722
+ "value": "\""
2723
+ },
2724
+ {
2725
+ "type": "BLANK"
2726
+ }
2727
+ ]
2728
+ },
2729
+ {
2730
+ "type": "SYMBOL",
2731
+ "name": "enable_escape_commandline_value"
2732
+ },
2733
+ {
2734
+ "type": "CHOICE",
2735
+ "members": [
2736
+ {
2737
+ "type": "STRING",
2738
+ "value": "\""
2739
+ },
2740
+ {
2741
+ "type": "BLANK"
2742
+ }
2743
+ ]
2744
+ }
2745
+ ]
2746
+ },
2747
+ "enable_escape_commandline_value": {
2748
+ "type": "ALIAS",
2749
+ "content": {
2750
+ "type": "SYMBOL",
2751
+ "name": "boolean"
2752
+ },
2753
+ "named": false,
2754
+ "value": "enable_escape_commandline_value"
2755
+ },
2669
2756
  "enable_ssh_keysign": {
2670
2757
  "type": "SEQ",
2671
2758
  "members": [
@@ -443,6 +443,10 @@
443
443
  "type": "dynamic_forward",
444
444
  "named": true
445
445
  },
446
+ {
447
+ "type": "enable_escape_commandline",
448
+ "named": true
449
+ },
446
450
  {
447
451
  "type": "enable_ssh_keysign",
448
452
  "named": true
@@ -930,6 +934,26 @@
930
934
  "named": true,
931
935
  "fields": {}
932
936
  },
937
+ {
938
+ "type": "enable_escape_commandline",
939
+ "named": true,
940
+ "fields": {},
941
+ "children": {
942
+ "multiple": false,
943
+ "required": true,
944
+ "types": [
945
+ {
946
+ "type": "enable_escape_commandline_value",
947
+ "named": true
948
+ }
949
+ ]
950
+ }
951
+ },
952
+ {
953
+ "type": "enable_escape_commandline_value",
954
+ "named": false,
955
+ "fields": {}
956
+ },
933
957
  {
934
958
  "type": "enable_ssh_keysign",
935
959
  "named": true,
@@ -2770,6 +2794,10 @@
2770
2794
  "type": "DynamicForward",
2771
2795
  "named": false
2772
2796
  },
2797
+ {
2798
+ "type": "EnableEscapeCommandline",
2799
+ "named": false
2800
+ },
2773
2801
  {
2774
2802
  "type": "EnableSSHKeysign",
2775
2803
  "named": false