@willbooster/tree-sitter-embedded-template 1.0.0 → 1.0.1

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 CHANGED
@@ -11,7 +11,8 @@ Embedded template grammar for [tree-sitter](https://github.com/tree-sitter/tree-
11
11
  to its authors and contributors. This is not an official release of that project.
12
12
 
13
13
  It parses templating languages such as ERB and EJS, in which scripting code is embedded in text with the delimiters
14
- `<%` and `%>`. This fork keeps the grammar of upstream's version 0.25.0 and generates the parser with the
14
+ `<%` and `%>`. This fork extends upstream's version 0.25.0 grammar with EJS output-tag whitespace slurping.
15
+ It generates the parser with the
15
16
  [WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter) generator. The parser loads only with that fork's runtime, version 2.0.0 or later
16
17
  ([willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter),
17
18
  [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter)); upstream's runtime rejects it.
package/grammar.js CHANGED
@@ -34,7 +34,7 @@ module.exports = grammar({
34
34
  output_directive: $ => seq(
35
35
  choice('<%=', '<%==', '<%|=', '<%|==', '<%-'),
36
36
  optional($.code),
37
- choice('%>', '-%>', '=%>'),
37
+ choice('%>', '-%>', '=%>', '_%>'),
38
38
  ),
39
39
 
40
40
  comment_directive: $ => seq(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-embedded-template",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Embedded template (ERB, EJS) grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
Binary file
package/tree-sitter.json CHANGED
@@ -36,7 +36,7 @@
36
36
  }
37
37
  ],
38
38
  "metadata": {
39
- "version": "1.0.0",
39
+ "version": "1.0.1",
40
40
  "license": "MIT",
41
41
  "description": "Embedded template (ERB, EJS) grammar for tree-sitter",
42
42
  "authors": [