@willbooster/tree-sitter-c 2.0.3 → 2.0.4
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/README.md +2 -3
- package/package.json +3 -3
- package/src/identifier.h +4 -3
- package/tree-sitter-c.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -18,8 +18,7 @@ This fork fixes parsing bugs and raises conformance with the ISO C standard
|
|
|
18
18
|
## Usage
|
|
19
19
|
|
|
20
20
|
The npm package ships `tree-sitter-c.wasm` for
|
|
21
|
-
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter), which runs in Node.js,
|
|
22
|
-
Bun, browsers, and Cloudflare Workers. In Node.js and Bun, load the grammar from its path:
|
|
21
|
+
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 1.1.6 or later, which runs in Node.js, Bun, browsers, and Cloudflare Workers. In Node.js and Bun, load the grammar from its path:
|
|
23
22
|
|
|
24
23
|
```js
|
|
25
24
|
import { fileURLToPath } from 'node:url';
|
|
@@ -71,7 +70,7 @@ malformed input):
|
|
|
71
70
|
|
|
72
71
|
```toml
|
|
73
72
|
[dependencies]
|
|
74
|
-
tree-sitter = { package = "willbooster-tree-sitter", version = "1" }
|
|
73
|
+
tree-sitter = { package = "willbooster-tree-sitter", version = "1.1.6" }
|
|
75
74
|
tree-sitter-c = { package = "willbooster-tree-sitter-c", version = "2" }
|
|
76
75
|
```
|
|
77
76
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-c",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "C grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"incremental",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@willbooster/oxfmt-config": "1.2.2",
|
|
51
51
|
"@willbooster/oxlint-config": "1.4.8",
|
|
52
52
|
"@willbooster/wb": "22.13.2",
|
|
53
|
-
"@willbooster/web-tree-sitter": "1.
|
|
53
|
+
"@willbooster/web-tree-sitter": "1.1.6",
|
|
54
54
|
"conventional-changelog-conventionalcommits": "10.4.0",
|
|
55
55
|
"lefthook": "2.1.14",
|
|
56
56
|
"oxfmt": "0.70.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"wrangler": "4.136.1"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@willbooster/web-tree-sitter": "^1.
|
|
67
|
+
"@willbooster/web-tree-sitter": "^1.1.6"
|
|
68
68
|
},
|
|
69
69
|
"peerDependenciesMeta": {
|
|
70
70
|
"@willbooster/web-tree-sitter": {
|
package/src/identifier.h
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// Generated by script/generateIdentifierRanges.js from the parser's Unicode identifier
|
|
1
|
+
// Generated by script/generateIdentifierRanges.js from the parser's Unicode identifier predicates.
|
|
2
2
|
#ifndef TREE_SITTER_C_IDENTIFIER_H_
|
|
3
3
|
#define TREE_SITTER_C_IDENTIFIER_H_
|
|
4
4
|
|
|
5
5
|
#include "tree_sitter/parser.h"
|
|
6
6
|
|
|
7
7
|
static const TSCharacterRange preproc_identifier_start[] = {
|
|
8
|
-
{
|
|
8
|
+
{0x24, 0x24}, {0x41, 0x5a}, {0x5c, 0x5c}, {0x5f, 0x5f}, {0x61, 0x7a}, {0xaa, 0xaa}, {0xb5, 0xb5}, {0xba, 0xba},
|
|
9
9
|
{0xc0, 0xd6}, {0xd8, 0xf6}, {0xf8, 0x2c1}, {0x2c6, 0x2d1}, {0x2e0, 0x2e4}, {0x2ec, 0x2ec}, {0x2ee, 0x2ee}, {0x370, 0x374},
|
|
10
10
|
{0x376, 0x377}, {0x37b, 0x37d}, {0x37f, 0x37f}, {0x386, 0x386}, {0x388, 0x38a}, {0x38c, 0x38c}, {0x38e, 0x3a1}, {0x3a3, 0x3f5},
|
|
11
11
|
{0x3f7, 0x481}, {0x48a, 0x52f}, {0x531, 0x556}, {0x559, 0x559}, {0x560, 0x588}, {0x5d0, 0x5ea}, {0x5ef, 0x5f2}, {0x620, 0x64a},
|
|
@@ -92,8 +92,9 @@ static const TSCharacterRange preproc_identifier_start[] = {
|
|
|
92
92
|
{0x1ee7e, 0x1ee7e}, {0x1ee80, 0x1ee89}, {0x1ee8b, 0x1ee9b}, {0x1eea1, 0x1eea3}, {0x1eea5, 0x1eea9}, {0x1eeab, 0x1eebb}, {0x20000, 0x2a6df}, {0x2a700, 0x2b739},
|
|
93
93
|
{0x2b740, 0x2b81d}, {0x2b820, 0x2cea1}, {0x2ceb0, 0x2ebe0}, {0x2ebf0, 0x2ee5d}, {0x2f800, 0x2fa1d}, {0x30000, 0x3134a}, {0x31350, 0x323af},
|
|
94
94
|
};
|
|
95
|
+
|
|
95
96
|
static const TSCharacterRange preproc_identifier_continue[] = {
|
|
96
|
-
{
|
|
97
|
+
{0x24, 0x24}, {0x30, 0x39}, {0x41, 0x5a}, {0x5c, 0x5c}, {0x5f, 0x5f}, {0x61, 0x7a}, {0xaa, 0xaa}, {0xb5, 0xb5},
|
|
97
98
|
{0xb7, 0xb7}, {0xba, 0xba}, {0xc0, 0xd6}, {0xd8, 0xf6}, {0xf8, 0x2c1}, {0x2c6, 0x2d1}, {0x2e0, 0x2e4}, {0x2ec, 0x2ec},
|
|
98
99
|
{0x2ee, 0x2ee}, {0x300, 0x374}, {0x376, 0x377}, {0x37b, 0x37d}, {0x37f, 0x37f}, {0x386, 0x38a}, {0x38c, 0x38c}, {0x38e, 0x3a1},
|
|
99
100
|
{0x3a3, 0x3f5}, {0x3f7, 0x481}, {0x483, 0x487}, {0x48a, 0x52f}, {0x531, 0x556}, {0x559, 0x559}, {0x560, 0x588}, {0x591, 0x5bd},
|
package/tree-sitter-c.wasm
CHANGED
|
Binary file
|