tree-sitter-sed 0.19.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 +6 -5
- package/bindings/rust/build.rs +1 -0
- package/common/grammar.js +663 -237
- package/common/scanner.h +701 -1014
- package/common/tokens.h +328 -0
- package/package.json +2 -2
- package/sed_ere/src/grammar.json +7 -107
- package/sed_ere/src/node-types.json +0 -13
- package/sed_ere/src/parser.c +54148 -56969
- package/src/grammar.json +7 -29
- package/src/parser.c +48564 -49067
- package/tree-sitter.json +3 -3
- package/common/dsl.js +0 -35
- package/common/regex.js +0 -435
package/Cargo.toml
CHANGED
package/README.md
CHANGED
|
@@ -7,11 +7,6 @@
|
|
|
7
7
|
[Tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammars for
|
|
8
8
|
POSIX.1-2024 sed.
|
|
9
9
|
|
|
10
|
-
## Syntax Issues
|
|
11
|
-
|
|
12
|
-
The parser detects syntax issues, including missing syntax, while preserving the surrounding structure.
|
|
13
|
-
These issues are represented as `syntax_issue` nodes.
|
|
14
|
-
|
|
15
10
|
## Installation
|
|
16
11
|
|
|
17
12
|
```sh
|
|
@@ -20,6 +15,8 @@ npm install tree-sitter-sed
|
|
|
20
15
|
|
|
21
16
|
## Grammars
|
|
22
17
|
|
|
18
|
+
BRE and ERE have different syntax, so we use separate grammars.
|
|
19
|
+
|
|
23
20
|
| Grammar | Description |
|
|
24
21
|
| --------- | ------------------------- |
|
|
25
22
|
| `sed` | POSIX.1-2024 sed with BRE |
|
|
@@ -40,6 +37,10 @@ npm test
|
|
|
40
37
|
- [POSIX.1-2024 sed](https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/utilities/sed.html)
|
|
41
38
|
- [POSIX.1-2024 regular expressions](https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/basedefs/V1_chap09.html)
|
|
42
39
|
|
|
40
|
+
## Used By
|
|
41
|
+
|
|
42
|
+
[sed-ts-mode](https://github.com/konomanoasa/sed-ts-mode): Emacs major mode.
|
|
43
|
+
|
|
43
44
|
## License
|
|
44
45
|
|
|
45
46
|
[MIT](LICENSE)
|