@gram-data/tree-sitter-gram 0.1.8 → 0.1.9
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 +1 -1
- package/package.json +5 -5
- package/prebuilds/darwin-arm64/@gram-data+tree-sitter-gram.node +0 -0
- package/prebuilds/darwin-x64/@gram-data+tree-sitter-gram.node +0 -0
- package/prebuilds/linux-arm64/@gram-data+tree-sitter-gram.node +0 -0
- package/prebuilds/linux-x64/@gram-data+tree-sitter-gram.node +0 -0
- package/prebuilds/win32-arm64/@gram-data+tree-sitter-gram.node +0 -0
- package/prebuilds/win32-x64/@gram-data+tree-sitter-gram.node +0 -0
- package/src/grammar.json +10 -4
- package/src/tree_sitter/array.h +2 -1
package/grammar.js
CHANGED
|
@@ -37,7 +37,7 @@ module.exports = grammar({
|
|
|
37
37
|
$.node
|
|
38
38
|
),
|
|
39
39
|
|
|
40
|
-
node: $ => seq("(", optional($._attributes),")"),
|
|
40
|
+
node: $ => seq(token("("), optional($._attributes), token(")")),
|
|
41
41
|
|
|
42
42
|
relationship: $ => seq(field("left", $.node), field("value", $._relationship_value), field("right", $._path)),
|
|
43
43
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gram-data/tree-sitter-gram",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "subject-oriented notation for structured data",
|
|
5
5
|
"homepage": "https://gram-data.github.io",
|
|
6
6
|
"repository": "github:gram-data/tree-sitter-gram",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"license": "ISC",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"node-gyp-build": "^4.8.4",
|
|
33
|
-
"node-addon-api": "^8.
|
|
33
|
+
"node-addon-api": "^8.3.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"tree-sitter": "^0.21.0"
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"eslint": "^9.
|
|
45
|
-
"node-gyp": "^
|
|
44
|
+
"eslint": "^9.17.0",
|
|
45
|
+
"node-gyp": "^11.0.0",
|
|
46
46
|
"prebuildify": "^6.0.1",
|
|
47
|
-
"tree-sitter-cli": "^0.24.
|
|
47
|
+
"tree-sitter-cli": "^0.24.5"
|
|
48
48
|
}
|
|
49
49
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/grammar.json
CHANGED
|
@@ -187,8 +187,11 @@
|
|
|
187
187
|
"type": "SEQ",
|
|
188
188
|
"members": [
|
|
189
189
|
{
|
|
190
|
-
"type": "
|
|
191
|
-
"
|
|
190
|
+
"type": "TOKEN",
|
|
191
|
+
"content": {
|
|
192
|
+
"type": "STRING",
|
|
193
|
+
"value": "("
|
|
194
|
+
}
|
|
192
195
|
},
|
|
193
196
|
{
|
|
194
197
|
"type": "CHOICE",
|
|
@@ -203,8 +206,11 @@
|
|
|
203
206
|
]
|
|
204
207
|
},
|
|
205
208
|
{
|
|
206
|
-
"type": "
|
|
207
|
-
"
|
|
209
|
+
"type": "TOKEN",
|
|
210
|
+
"content": {
|
|
211
|
+
"type": "STRING",
|
|
212
|
+
"value": ")"
|
|
213
|
+
}
|
|
208
214
|
}
|
|
209
215
|
]
|
|
210
216
|
},
|
package/src/tree_sitter/array.h
CHANGED
|
@@ -14,6 +14,7 @@ extern "C" {
|
|
|
14
14
|
#include <string.h>
|
|
15
15
|
|
|
16
16
|
#ifdef _MSC_VER
|
|
17
|
+
#pragma warning(push)
|
|
17
18
|
#pragma warning(disable : 4101)
|
|
18
19
|
#elif defined(__GNUC__) || defined(__clang__)
|
|
19
20
|
#pragma GCC diagnostic push
|
|
@@ -278,7 +279,7 @@ static inline void _array__splice(Array *self, size_t element_size,
|
|
|
278
279
|
#define _compare_int(a, b) ((int)*(a) - (int)(b))
|
|
279
280
|
|
|
280
281
|
#ifdef _MSC_VER
|
|
281
|
-
#pragma warning(
|
|
282
|
+
#pragma warning(pop)
|
|
282
283
|
#elif defined(__GNUC__) || defined(__clang__)
|
|
283
284
|
#pragma GCC diagnostic pop
|
|
284
285
|
#endif
|