tree-sitter-sh 0.16.0 → 0.17.0
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/Cargo.toml +16 -2
- package/README.md +2 -7
- package/grammar.js +229 -216
- package/package.json +1 -1
- package/src/arithmetic.h +76 -63
- package/src/grammar.json +904 -786
- package/src/lexical-tokens.h +2 -0
- package/src/lexical-tokens.json +4 -2
- package/src/parser.c +2 -2
- package/src/scanner.c +1807 -1649
- package/test/bindings.test.rs +234 -2
- package/tree-sitter.json +1 -1
package/Cargo.toml
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "tree-sitter-sh"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.17.0"
|
|
4
4
|
edition = "2024"
|
|
5
|
+
description = "Tree-sitter grammar for POSIX sh."
|
|
6
|
+
readme = "README.md"
|
|
7
|
+
repository = "https://github.com/konomanoasa/tree-sitter-sh"
|
|
8
|
+
license = "MIT"
|
|
5
9
|
build = "bindings/rust/build.rs"
|
|
6
10
|
links = "tree-sitter-sh"
|
|
7
|
-
|
|
11
|
+
include = [
|
|
12
|
+
"/LICENSE",
|
|
13
|
+
"/README.md",
|
|
14
|
+
"/bindings/rust/*.rs",
|
|
15
|
+
"/queries/*.scm",
|
|
16
|
+
"/src/*.c",
|
|
17
|
+
"/src/*.h",
|
|
18
|
+
"/src/node-types.json",
|
|
19
|
+
"/src/tree_sitter/*.h",
|
|
20
|
+
"/test/bindings.test.rs",
|
|
21
|
+
]
|
|
8
22
|
|
|
9
23
|
[lib]
|
|
10
24
|
path = "bindings/rust/lib.rs"
|
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# tree-sitter-sh
|
|
2
2
|
|
|
3
3
|
[](https://github.com/konomanoasa/tree-sitter-sh/actions/workflows/ci.yaml)
|
|
4
|
+
[](https://crates.io/crates/tree-sitter-sh)
|
|
4
5
|
[](https://www.npmjs.com/package/tree-sitter-sh)
|
|
5
6
|
|
|
6
7
|
[Tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar for the
|
|
@@ -12,15 +13,9 @@ POSIX.1-2024 Shell Command Language.
|
|
|
12
13
|
npm install tree-sitter-sh
|
|
13
14
|
```
|
|
14
15
|
|
|
15
|
-
## Grammar
|
|
16
|
-
|
|
17
|
-
| Grammar | Description | Rust constant |
|
|
18
|
-
| --- | --- | --- |
|
|
19
|
-
| `sh` | POSIX.1-2024 Shell Command Language | `LANGUAGE` |
|
|
20
|
-
|
|
21
16
|
## Development
|
|
22
17
|
|
|
23
|
-
Development
|
|
18
|
+
Development uses Node.js 24 or later.
|
|
24
19
|
|
|
25
20
|
```sh
|
|
26
21
|
npm install
|