tree-sitter-ssh-client-config 2023.2.23 → 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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tree-sitter-ssh-client-config",
3
- "version": "2023.2.23",
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,12 +78,12 @@
78
78
  (dynamic_forward) @keyword
79
79
  (dynamic_forward_value) @string
80
80
 
81
- (enable_ssh_keysign) @keyword
82
- (enable_ssh_keysign_value) @constant.builtin.boolean
83
-
84
81
  (enable_escape_commandline) @keyword
85
82
  (enable_escape_commandline_value) @constant.builtin.boolean
86
83
 
84
+ (enable_ssh_keysign) @keyword
85
+ (enable_ssh_keysign_value) @constant.builtin.boolean
86
+
87
87
  (escape_char) @keyword
88
88
  (escape_char_value) @constant.character.escape
89
89
 
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",
package/src/parser.c CHANGED
@@ -112397,7 +112397,7 @@ extern "C" {
112397
112397
  #define extern __declspec(dllexport)
112398
112398
  #endif
112399
112399
 
112400
- extern const TSLanguage *tree_sitter_sshclientconfig(void) {
112400
+ extern const TSLanguage *tree_sitter_ssh_client_config(void) {
112401
112401
  static const TSLanguage language = {
112402
112402
  .version = LANGUAGE_VERSION,
112403
112403
  .symbol_count = SYMBOL_COUNT,