tree-sitter-ssh-client-config 2024.3.14 → 2024.3.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tree-sitter-ssh-client-config",
3
- "version": "2024.3.14",
3
+ "version": "2024.3.28",
4
4
  "description": "tree-sitter grammar for SSH client configuration files",
5
5
  "keywords": [
6
6
  "parser",
@@ -45,7 +45,7 @@
45
45
  }
46
46
  },
47
47
  "devDependencies": {
48
- "tree-sitter-cli": "0.22.1",
48
+ "tree-sitter-cli": "0.22.2",
49
49
  "prebuildify": "^6.0.0"
50
50
  },
51
51
  "tree-sitter": [
package/src/parser.c CHANGED
@@ -118433,7 +118433,9 @@ static const TSParseActionEntry ts_parse_actions[] = {
118433
118433
  #ifdef __cplusplus
118434
118434
  extern "C" {
118435
118435
  #endif
118436
- #ifdef _WIN32
118436
+ #ifdef TREE_SITTER_HIDE_SYMBOLS
118437
+ #define TS_PUBLIC
118438
+ #elif defined(_WIN32)
118437
118439
  #define TS_PUBLIC __declspec(dllexport)
118438
118440
  #else
118439
118441
  #define TS_PUBLIC __attribute__((visibility("default")))
@@ -66,9 +66,12 @@ extern "C" {
66
66
  /// Increase the array's size by `count` elements.
67
67
  /// New elements are zero-initialized.
68
68
  #define array_grow_by(self, count) \
69
- (_array__grow((Array *)(self), count, array_elem_size(self)), \
70
- memset((self)->contents + (self)->size, 0, (count) * array_elem_size(self)), \
71
- (self)->size += (count))
69
+ do { \
70
+ if ((count) == 0) break; \
71
+ _array__grow((Array *)(self), count, array_elem_size(self)); \
72
+ memset((self)->contents + (self)->size, 0, (count) * array_elem_size(self)); \
73
+ (self)->size += (count); \
74
+ } while (0)
72
75
 
73
76
  /// Append all elements from one array to the end of another.
74
77
  #define array_push_all(self, other) \