tree-sitter-sed 0.18.0 → 0.20.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 +1 -1
- package/README.md +7 -1
- package/bindings/rust/build.rs +1 -0
- package/common/grammar.js +1033 -424
- package/common/scanner.h +919 -1090
- package/common/tokens.h +328 -0
- package/package.json +7 -6
- package/queries/highlights.scm +57 -32
- package/sed_ere/queries/highlights.scm +67 -33
- package/sed_ere/src/grammar.json +6189 -2979
- package/sed_ere/src/node-types.json +355 -535
- package/sed_ere/src/parser.c +72688 -41725
- package/src/grammar.json +5873 -2705
- package/src/node-types.json +372 -555
- package/src/parser.c +85733 -52320
- package/test/bindings.test.rs +174 -70
- package/tree-sitter.json +4 -3
- package/common/dsl.js +0 -39
- package/common/regex.js +0 -551
package/Cargo.toml
CHANGED
package/README.md
CHANGED
|
@@ -15,6 +15,8 @@ npm install tree-sitter-sed
|
|
|
15
15
|
|
|
16
16
|
## Grammars
|
|
17
17
|
|
|
18
|
+
BRE and ERE have different syntax, so we use separate grammars.
|
|
19
|
+
|
|
18
20
|
| Grammar | Description |
|
|
19
21
|
| --------- | ------------------------- |
|
|
20
22
|
| `sed` | POSIX.1-2024 sed with BRE |
|
|
@@ -22,7 +24,7 @@ npm install tree-sitter-sed
|
|
|
22
24
|
|
|
23
25
|
## Development
|
|
24
26
|
|
|
25
|
-
Development uses Node.js 24 or later.
|
|
27
|
+
Development uses Node.js 24.21.0 or later.
|
|
26
28
|
|
|
27
29
|
```sh
|
|
28
30
|
npm install
|
|
@@ -35,6 +37,10 @@ npm test
|
|
|
35
37
|
- [POSIX.1-2024 sed](https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/utilities/sed.html)
|
|
36
38
|
- [POSIX.1-2024 regular expressions](https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/basedefs/V1_chap09.html)
|
|
37
39
|
|
|
40
|
+
## Used By
|
|
41
|
+
|
|
42
|
+
[sed-ts-mode](https://github.com/konomanoasa/sed-ts-mode): Emacs major mode.
|
|
43
|
+
|
|
38
44
|
## License
|
|
39
45
|
|
|
40
46
|
[MIT](LICENSE)
|