@willbooster/tree-sitter-rust 1.1.7 → 1.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/README.md +2 -2
- package/grammar.js +4 -0
- package/package.json +4 -3
- package/src/node-types.json +4 -0
- package/tree-sitter-rust.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://github.com/WillBooster/tree-sitter-rust/actions/workflows/test.yml)
|
|
6
6
|
[](https://github.com/WillBooster/tree-sitter-rust/actions/workflows/test-rust.yml)
|
|
7
7
|
[](https://github.com/semantic-release/semantic-release)
|
|
8
|
-
[](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
|
|
9
9
|
[](https://crates.io/crates/willbooster-tree-sitter-rust)
|
|
10
10
|
|
|
11
11
|
Rust grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked from
|
|
@@ -89,7 +89,7 @@ cargo test
|
|
|
89
89
|
The scripts and tests generate, build, test, and parse with `script/tree-sitter`, the tree-sitter CLI of the
|
|
90
90
|
WillBooster/tree-sitter runtime version locked in `Cargo.lock`, since the generator and the runtime of upstream's CLI are
|
|
91
91
|
not the ones this package ships with. Its first run downloads that CLI from the runtime's GitHub Release, or builds it
|
|
92
|
-
with `cargo` (
|
|
92
|
+
with `cargo` (whose build runs the CMake that `mise.toml` pins) when the download fails or the release has no binary that runs here. Run other CLI
|
|
93
93
|
commands through it as well (e.g. `script/tree-sitter parse file.rs`).
|
|
94
94
|
|
|
95
95
|
`bun run test` runs:
|
package/grammar.js
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
* @license MIT
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
/// <reference types="tree-sitter-cli/dsl" />
|
|
10
|
+
// @ts-check
|
|
11
|
+
|
|
9
12
|
// https://doc.rust-lang.org/reference/expressions.html#expression-precedence
|
|
10
13
|
const PREC = {
|
|
11
14
|
call: 15,
|
|
@@ -90,6 +93,7 @@ const TOKEN_TREE_NON_SPECIAL_PUNCTUATION = [
|
|
|
90
93
|
'=>',
|
|
91
94
|
'#',
|
|
92
95
|
'?',
|
|
96
|
+
'~',
|
|
93
97
|
];
|
|
94
98
|
|
|
95
99
|
const primitiveTypes = [...numericTypes, 'bool', 'str', 'char'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-rust",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "Rust grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"incremental",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@vitest/browser-playwright": "5.0.1",
|
|
46
46
|
"@willbooster/oxfmt-config": "1.2.2",
|
|
47
47
|
"@willbooster/oxlint-config": "1.4.8",
|
|
48
|
-
"@willbooster/wb": "22.13.
|
|
49
|
-
"@willbooster/web-tree-sitter": "1.0.
|
|
48
|
+
"@willbooster/wb": "22.13.2",
|
|
49
|
+
"@willbooster/web-tree-sitter": "1.0.17",
|
|
50
50
|
"conventional-changelog-conventionalcommits": "10.4.0",
|
|
51
51
|
"lefthook": "2.1.14",
|
|
52
52
|
"oxfmt": "0.70.0",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"playwright": "1.63.0",
|
|
56
56
|
"semantic-release": "25.0.9",
|
|
57
57
|
"sort-package-json": "4.0.0",
|
|
58
|
+
"tree-sitter-cli": "0.27.0",
|
|
58
59
|
"typescript": "7.0.2",
|
|
59
60
|
"vite": "8.3.0",
|
|
60
61
|
"vitest": "5.0.1",
|
package/src/node-types.json
CHANGED
package/tree-sitter-rust.wasm
CHANGED
|
Binary file
|