@gram-data/tree-sitter-gram 0.3.3 → 0.3.4
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/editors/zed/README.md +30 -13
- package/editors/zed/extension.toml +3 -3
- package/editors/zed/languages/gram/highlights.scm +32 -9
- package/editors/zed/languages/gram/indents.scm +14 -0
- package/editors/zed/languages/gram/injections.scm +29 -0
- package/editors/zed/languages/gram/locals.scm +28 -0
- package/package.json +1 -1
- package/prebuilds/darwin-arm64/@gram-data+tree-sitter-gram.node +0 -0
- package/prebuilds/darwin-x64/@gram-data+tree-sitter-gram.node +0 -0
- package/prebuilds/linux-arm64/@gram-data+tree-sitter-gram.node +0 -0
- package/prebuilds/linux-x64/@gram-data+tree-sitter-gram.node +0 -0
- package/prebuilds/win32-arm64/@gram-data+tree-sitter-gram.node +0 -0
- package/prebuilds/win32-x64/@gram-data+tree-sitter-gram.node +0 -0
- package/queries/highlights.scm +32 -9
- package/queries/indents.scm +14 -0
- package/queries/injections.scm +29 -0
- package/queries/locals.scm +28 -0
- package/src/parser.c +1 -1
- package/tree-sitter-gram.wasm +0 -0
- package/tree-sitter.json +1 -1
package/editors/zed/README.md
CHANGED
|
@@ -115,27 +115,44 @@ To work on this extension:
|
|
|
115
115
|
|
|
116
116
|
```
|
|
117
117
|
editors/zed/
|
|
118
|
-
├── extension.toml
|
|
119
|
-
├── grammars/
|
|
120
|
-
│ └── tree-sitter-gram/ # Grammar files
|
|
121
|
-
│ ├── grammar.js # Tree-sitter grammar definition
|
|
122
|
-
│ └── src/ # Generated parser source
|
|
118
|
+
├── extension.toml # Extension metadata; points at grammar repo (repository + rev)
|
|
123
119
|
├── languages/
|
|
124
120
|
│ └── gram/
|
|
125
|
-
│ ├── config.toml #
|
|
126
|
-
│
|
|
127
|
-
│
|
|
128
|
-
|
|
121
|
+
│ ├── config.toml # Zed language config (brackets, suffixes, etc.)
|
|
122
|
+
│ ├── highlights.scm # → ../../../../queries/ (symlink; edit queries/ in repo root)
|
|
123
|
+
│ ├── indents.scm
|
|
124
|
+
│ ├── locals.scm
|
|
125
|
+
│ └── injections.scm
|
|
126
|
+
├── test.gram # Example file for testing
|
|
127
|
+
└── .gitignore # Ignores grammars/ (populated by Zed from extension.toml)
|
|
129
128
|
```
|
|
130
129
|
|
|
130
|
+
Query files (`.scm`) in `languages/gram/` are symlinks to the canonical `queries/` directory at the repo root. Edit `queries/*.scm` there; do not edit the copies under `editors/zed` directly. Running `scripts/prepare-zed-extension.sh` copies `queries/*.scm` into this directory (e.g. for distribution) and updates extension version/rev.
|
|
131
|
+
|
|
132
|
+
The `grammars/` directory is created by Zed when it loads the extension (it clones the grammar from the URL in `extension.toml`). It is gitignored. If you see a nested `editors/zed/grammars/gram/...` path, that is the cloned repo inside Zed’s cache; you can ignore or delete `editors/zed/grammars/` locally.
|
|
133
|
+
|
|
134
|
+
### Keeping the grammar revision in sync
|
|
135
|
+
|
|
136
|
+
The extension pins the tree-sitter-gram grammar with `repository` and `rev` in `extension.toml`. Zed uses that to fetch and build the parser. To keep it aligned with the latest version:
|
|
137
|
+
|
|
138
|
+
| Goal | Command | What it does |
|
|
139
|
+
|------|---------|---------------|
|
|
140
|
+
| **Local testing** | `npm run zed:dev` | Sets `repository = "file://<repo-root>"` and `rev = HEAD`. Zed uses your local clone at the current commit, so you can test grammar/query changes without pushing. |
|
|
141
|
+
| **Prepare for publish** | `npm run zed:publish` | Sets `repository` to the public GitHub URL (from `package.json`) and `rev = HEAD`. Run this before committing a release so the published extension points at the correct commit on GitHub. |
|
|
142
|
+
|
|
143
|
+
After either command, `extension.toml` is updated in place. For local dev you typically don’t commit that change (so the repo keeps a rev that matches the last release). For a release, run `zed:publish`, then commit and push so the extension and the tagged release stay aligned.
|
|
144
|
+
|
|
145
|
+
**If Zed shows an old version (e.g. 0.1.11) after installing the dev extension:** Zed may be using a cached clone of the grammar (at an old rev) or an older copy of the extension. Try: (1) Uninstall the Gram extension from Zed’s Extensions panel. (2) Delete the grammar cache: remove `editors/zed/grammars/` if it exists (Zed recreates it when needed). (3) Run `npm run zed:dev` again so `extension.toml` has the current version and rev. (4) In Zed, run “Install Dev Extension” and select `editors/zed` again. Restart Zed and recheck the extension version.
|
|
146
|
+
|
|
131
147
|
## Contributing
|
|
132
148
|
|
|
133
149
|
Contributions are welcome! Please see the main [repository](https://github.com/gram-data/tree-sitter-gram) for contribution guidelines.
|
|
134
150
|
|
|
135
|
-
To improve syntax highlighting:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
151
|
+
To improve syntax highlighting and editor behavior:
|
|
152
|
+
|
|
153
|
+
1. Edit the canonical query files under `queries/` at the repo root (e.g. `queries/highlights.scm`).
|
|
154
|
+
2. The extension uses those via symlinks in `languages/gram/`; run `scripts/prepare-zed-extension.sh` if you need to copy them for distribution.
|
|
155
|
+
3. Test with various Gram files, then submit a pull request.
|
|
139
156
|
|
|
140
157
|
## License
|
|
141
158
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
id = "gram"
|
|
2
2
|
name = "Gram Language Support"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.4"
|
|
4
4
|
schema_version = 1
|
|
5
5
|
authors = ["Gram Data Contributors"]
|
|
6
|
-
description = "Support for Gram notation -
|
|
6
|
+
description = "Support for Gram notation - composable data patterns"
|
|
7
7
|
|
|
8
8
|
# path = "grammars/tree-sitter-gram"
|
|
9
9
|
[grammars.gram]
|
|
10
10
|
repository = "https://github.com/gram-data/tree-sitter-gram"
|
|
11
|
-
rev = "
|
|
11
|
+
rev = "7aee4c203a5c6ea48660ae6d8af849ed90317bed"
|
|
@@ -12,7 +12,38 @@
|
|
|
12
12
|
; Boolean literals
|
|
13
13
|
(boolean_literal) @boolean
|
|
14
14
|
|
|
15
|
-
;
|
|
15
|
+
; Comment (FR-003)
|
|
16
|
+
(comment) @comment
|
|
17
|
+
|
|
18
|
+
; Tagged-string tag distinct from content (FR-002)
|
|
19
|
+
(tagged_string tag: (symbol) @attribute)
|
|
20
|
+
|
|
21
|
+
; Reference identifier: pattern_reference (FR-001)
|
|
22
|
+
(pattern_reference identifier: (_) @variable)
|
|
23
|
+
|
|
24
|
+
; Definition-like identifiers (FR-001): @type
|
|
25
|
+
; subject/node subject is _subject (use wildcard _ as it may be hidden in some runtimes)
|
|
26
|
+
(subject_pattern subject: (_ identifier: (_) @type))
|
|
27
|
+
(subject_pattern subject: (_ labels: (labels (symbol) @type)))
|
|
28
|
+
(node_pattern subject: (_ identifier: (_) @type))
|
|
29
|
+
(node_pattern subject: (_ labels: (labels (symbol) @type)))
|
|
30
|
+
(relationship_pattern left: (node_pattern subject: (_ identifier: (_) @type)))
|
|
31
|
+
(relationship_pattern left: (node_pattern subject: (_ labels: (labels (symbol) @type))))
|
|
32
|
+
(relationship_pattern right: (node_pattern subject: (_ identifier: (_) @type)))
|
|
33
|
+
(relationship_pattern right: (node_pattern subject: (_ labels: (labels (symbol) @type))))
|
|
34
|
+
; Arrow kind: subject is inside optional brackets on the arrow
|
|
35
|
+
(relationship_pattern kind: (right_arrow subject: (_ identifier: (_) @type)))
|
|
36
|
+
(relationship_pattern kind: (right_arrow subject: (_ labels: (labels (symbol) @type))))
|
|
37
|
+
(relationship_pattern kind: (left_arrow subject: (_ identifier: (_) @type)))
|
|
38
|
+
(relationship_pattern kind: (left_arrow subject: (_ labels: (labels (symbol) @type))))
|
|
39
|
+
(relationship_pattern kind: (undirected_arrow subject: (_ identifier: (_) @type)))
|
|
40
|
+
(relationship_pattern kind: (undirected_arrow subject: (_ labels: (labels (symbol) @type))))
|
|
41
|
+
(relationship_pattern kind: (bidirectional_arrow subject: (_ identifier: (_) @type)))
|
|
42
|
+
(relationship_pattern kind: (bidirectional_arrow subject: (_ labels: (labels (symbol) @type))))
|
|
43
|
+
(identified_annotation identifier: (_) @type)
|
|
44
|
+
(identified_annotation labels: (labels (symbol) @type))
|
|
45
|
+
|
|
46
|
+
; Symbols and identifiers (generic; definition/reference/tag captured above)
|
|
16
47
|
(symbol) @variable
|
|
17
48
|
|
|
18
49
|
; Keywords and operators
|
|
@@ -48,14 +79,6 @@
|
|
|
48
79
|
|
|
49
80
|
; Annotation keys (property-style) and headers (identified/label-style)
|
|
50
81
|
(property_annotation key: (symbol) @attribute)
|
|
51
|
-
(identified_annotation identifier: (_) @attribute)
|
|
52
|
-
(identified_annotation labels: (_) @attribute)
|
|
53
|
-
|
|
54
|
-
; Subject Pattern notation (special highlighting)
|
|
55
|
-
(subject_pattern) @type
|
|
56
|
-
|
|
57
|
-
; Node with labels
|
|
58
|
-
(node_pattern (labels (symbol) @type))
|
|
59
82
|
|
|
60
83
|
; Relationship arrows (special highlighting for graph syntax)
|
|
61
84
|
(relationship_pattern) @keyword
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
; Indentation: 2 spaces per level for brackets and multi-line structures
|
|
2
|
+
; FR-007 — specs/004-editor-improvements/contracts/indents.md
|
|
3
|
+
|
|
4
|
+
; Record {}
|
|
5
|
+
"{" @indent
|
|
6
|
+
"}" @indent.end
|
|
7
|
+
|
|
8
|
+
; Subject pattern []
|
|
9
|
+
"[" @indent
|
|
10
|
+
"]" @indent.end
|
|
11
|
+
|
|
12
|
+
; Node pattern ()
|
|
13
|
+
"(" @indent
|
|
14
|
+
")" @indent.end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
; Language injection for tagged strings: tag`content` and ```tag\ncontent\n```
|
|
2
|
+
;
|
|
3
|
+
; The tag symbol is used as the injection language so that downstream and editors
|
|
4
|
+
; can support arbitrary tags without changing the grammar. Well-known tags (md, ts,
|
|
5
|
+
; date, datetime, time, sql, json, html, etc.) are documented in docs/tagged-strings-and-injections.md.
|
|
6
|
+
;
|
|
7
|
+
; Overrides below map tags that do not match common parser names. The final
|
|
8
|
+
; rule uses the tag's text as the language name for all other tags (e.g. "sql",
|
|
9
|
+
; "json", "html" often match parser names).
|
|
10
|
+
|
|
11
|
+
; md -> markdown
|
|
12
|
+
(tagged_string
|
|
13
|
+
tag: (symbol) @_tag
|
|
14
|
+
content: (string_content) @injection.content)
|
|
15
|
+
(#eq? @_tag "md")
|
|
16
|
+
(#set! injection.language "markdown")
|
|
17
|
+
|
|
18
|
+
; ts -> typescript
|
|
19
|
+
(tagged_string
|
|
20
|
+
tag: (symbol) @_tag
|
|
21
|
+
content: (string_content) @injection.content)
|
|
22
|
+
(#eq? @_tag "ts")
|
|
23
|
+
(#set! injection.language "typescript")
|
|
24
|
+
|
|
25
|
+
; Dynamic: use tag text as language name for all other tags (sql, json, html, etc.)
|
|
26
|
+
; Editors may map additional tags (e.g. date, datetime, time) to parsers or leave as plain.
|
|
27
|
+
(tagged_string
|
|
28
|
+
tag: (symbol) @injection.language
|
|
29
|
+
content: (string_content) @injection.content)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
; Locals: go to definition and highlight references (file scope)
|
|
2
|
+
; FR-005, FR-006 — specs/004-editor-improvements/contracts/locals.md
|
|
3
|
+
|
|
4
|
+
; File scope: all definitions and references in one scope
|
|
5
|
+
(gram_pattern) @local.scope
|
|
6
|
+
|
|
7
|
+
; Definitions: identifiers that define a pattern or annotation
|
|
8
|
+
(subject_pattern subject: (_ identifier: (_) @local.definition))
|
|
9
|
+
(subject_pattern subject: (_ labels: (labels (symbol) @local.definition)))
|
|
10
|
+
(node_pattern subject: (_ identifier: (_) @local.definition))
|
|
11
|
+
(node_pattern subject: (_ labels: (labels (symbol) @local.definition)))
|
|
12
|
+
(relationship_pattern left: (node_pattern subject: (_ identifier: (_) @local.definition)))
|
|
13
|
+
(relationship_pattern left: (node_pattern subject: (_ labels: (labels (symbol) @local.definition))))
|
|
14
|
+
(relationship_pattern right: (node_pattern subject: (_ identifier: (_) @local.definition)))
|
|
15
|
+
(relationship_pattern right: (node_pattern subject: (_ labels: (labels (symbol) @local.definition))))
|
|
16
|
+
(relationship_pattern kind: (right_arrow subject: (_ identifier: (_) @local.definition)))
|
|
17
|
+
(relationship_pattern kind: (right_arrow subject: (_ labels: (labels (symbol) @local.definition))))
|
|
18
|
+
(relationship_pattern kind: (left_arrow subject: (_ identifier: (_) @local.definition)))
|
|
19
|
+
(relationship_pattern kind: (left_arrow subject: (_ labels: (labels (symbol) @local.definition))))
|
|
20
|
+
(relationship_pattern kind: (undirected_arrow subject: (_ identifier: (_) @local.definition)))
|
|
21
|
+
(relationship_pattern kind: (undirected_arrow subject: (_ labels: (labels (symbol) @local.definition))))
|
|
22
|
+
(relationship_pattern kind: (bidirectional_arrow subject: (_ identifier: (_) @local.definition)))
|
|
23
|
+
(relationship_pattern kind: (bidirectional_arrow subject: (_ labels: (labels (symbol) @local.definition))))
|
|
24
|
+
(identified_annotation identifier: (_) @local.definition)
|
|
25
|
+
(identified_annotation labels: (labels (symbol) @local.definition))
|
|
26
|
+
|
|
27
|
+
; References: pattern_reference identifier
|
|
28
|
+
(pattern_reference identifier: (_) @local.reference)
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/queries/highlights.scm
CHANGED
|
@@ -12,7 +12,38 @@
|
|
|
12
12
|
; Boolean literals
|
|
13
13
|
(boolean_literal) @boolean
|
|
14
14
|
|
|
15
|
-
;
|
|
15
|
+
; Comment (FR-003)
|
|
16
|
+
(comment) @comment
|
|
17
|
+
|
|
18
|
+
; Tagged-string tag distinct from content (FR-002)
|
|
19
|
+
(tagged_string tag: (symbol) @attribute)
|
|
20
|
+
|
|
21
|
+
; Reference identifier: pattern_reference (FR-001)
|
|
22
|
+
(pattern_reference identifier: (_) @variable)
|
|
23
|
+
|
|
24
|
+
; Definition-like identifiers (FR-001): @type
|
|
25
|
+
; subject/node subject is _subject (use wildcard _ as it may be hidden in some runtimes)
|
|
26
|
+
(subject_pattern subject: (_ identifier: (_) @type))
|
|
27
|
+
(subject_pattern subject: (_ labels: (labels (symbol) @type)))
|
|
28
|
+
(node_pattern subject: (_ identifier: (_) @type))
|
|
29
|
+
(node_pattern subject: (_ labels: (labels (symbol) @type)))
|
|
30
|
+
(relationship_pattern left: (node_pattern subject: (_ identifier: (_) @type)))
|
|
31
|
+
(relationship_pattern left: (node_pattern subject: (_ labels: (labels (symbol) @type))))
|
|
32
|
+
(relationship_pattern right: (node_pattern subject: (_ identifier: (_) @type)))
|
|
33
|
+
(relationship_pattern right: (node_pattern subject: (_ labels: (labels (symbol) @type))))
|
|
34
|
+
; Arrow kind: subject is inside optional brackets on the arrow
|
|
35
|
+
(relationship_pattern kind: (right_arrow subject: (_ identifier: (_) @type)))
|
|
36
|
+
(relationship_pattern kind: (right_arrow subject: (_ labels: (labels (symbol) @type))))
|
|
37
|
+
(relationship_pattern kind: (left_arrow subject: (_ identifier: (_) @type)))
|
|
38
|
+
(relationship_pattern kind: (left_arrow subject: (_ labels: (labels (symbol) @type))))
|
|
39
|
+
(relationship_pattern kind: (undirected_arrow subject: (_ identifier: (_) @type)))
|
|
40
|
+
(relationship_pattern kind: (undirected_arrow subject: (_ labels: (labels (symbol) @type))))
|
|
41
|
+
(relationship_pattern kind: (bidirectional_arrow subject: (_ identifier: (_) @type)))
|
|
42
|
+
(relationship_pattern kind: (bidirectional_arrow subject: (_ labels: (labels (symbol) @type))))
|
|
43
|
+
(identified_annotation identifier: (_) @type)
|
|
44
|
+
(identified_annotation labels: (labels (symbol) @type))
|
|
45
|
+
|
|
46
|
+
; Symbols and identifiers (generic; definition/reference/tag captured above)
|
|
16
47
|
(symbol) @variable
|
|
17
48
|
|
|
18
49
|
; Keywords and operators
|
|
@@ -48,14 +79,6 @@
|
|
|
48
79
|
|
|
49
80
|
; Annotation keys (property-style) and headers (identified/label-style)
|
|
50
81
|
(property_annotation key: (symbol) @attribute)
|
|
51
|
-
(identified_annotation identifier: (_) @attribute)
|
|
52
|
-
(identified_annotation labels: (_) @attribute)
|
|
53
|
-
|
|
54
|
-
; Subject Pattern notation (special highlighting)
|
|
55
|
-
(subject_pattern) @type
|
|
56
|
-
|
|
57
|
-
; Node with labels
|
|
58
|
-
(node_pattern (labels (symbol) @type))
|
|
59
82
|
|
|
60
83
|
; Relationship arrows (special highlighting for graph syntax)
|
|
61
84
|
(relationship_pattern) @keyword
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
; Indentation: 2 spaces per level for brackets and multi-line structures
|
|
2
|
+
; FR-007 — specs/004-editor-improvements/contracts/indents.md
|
|
3
|
+
|
|
4
|
+
; Record {}
|
|
5
|
+
"{" @indent
|
|
6
|
+
"}" @indent.end
|
|
7
|
+
|
|
8
|
+
; Subject pattern []
|
|
9
|
+
"[" @indent
|
|
10
|
+
"]" @indent.end
|
|
11
|
+
|
|
12
|
+
; Node pattern ()
|
|
13
|
+
"(" @indent
|
|
14
|
+
")" @indent.end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
; Language injection for tagged strings: tag`content` and ```tag\ncontent\n```
|
|
2
|
+
;
|
|
3
|
+
; The tag symbol is used as the injection language so that downstream and editors
|
|
4
|
+
; can support arbitrary tags without changing the grammar. Well-known tags (md, ts,
|
|
5
|
+
; date, datetime, time, sql, json, html, etc.) are documented in docs/tagged-strings-and-injections.md.
|
|
6
|
+
;
|
|
7
|
+
; Overrides below map tags that do not match common parser names. The final
|
|
8
|
+
; rule uses the tag's text as the language name for all other tags (e.g. "sql",
|
|
9
|
+
; "json", "html" often match parser names).
|
|
10
|
+
|
|
11
|
+
; md -> markdown
|
|
12
|
+
(tagged_string
|
|
13
|
+
tag: (symbol) @_tag
|
|
14
|
+
content: (string_content) @injection.content)
|
|
15
|
+
(#eq? @_tag "md")
|
|
16
|
+
(#set! injection.language "markdown")
|
|
17
|
+
|
|
18
|
+
; ts -> typescript
|
|
19
|
+
(tagged_string
|
|
20
|
+
tag: (symbol) @_tag
|
|
21
|
+
content: (string_content) @injection.content)
|
|
22
|
+
(#eq? @_tag "ts")
|
|
23
|
+
(#set! injection.language "typescript")
|
|
24
|
+
|
|
25
|
+
; Dynamic: use tag text as language name for all other tags (sql, json, html, etc.)
|
|
26
|
+
; Editors may map additional tags (e.g. date, datetime, time) to parsers or leave as plain.
|
|
27
|
+
(tagged_string
|
|
28
|
+
tag: (symbol) @injection.language
|
|
29
|
+
content: (string_content) @injection.content)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
; Locals: go to definition and highlight references (file scope)
|
|
2
|
+
; FR-005, FR-006 — specs/004-editor-improvements/contracts/locals.md
|
|
3
|
+
|
|
4
|
+
; File scope: all definitions and references in one scope
|
|
5
|
+
(gram_pattern) @local.scope
|
|
6
|
+
|
|
7
|
+
; Definitions: identifiers that define a pattern or annotation
|
|
8
|
+
(subject_pattern subject: (_ identifier: (_) @local.definition))
|
|
9
|
+
(subject_pattern subject: (_ labels: (labels (symbol) @local.definition)))
|
|
10
|
+
(node_pattern subject: (_ identifier: (_) @local.definition))
|
|
11
|
+
(node_pattern subject: (_ labels: (labels (symbol) @local.definition)))
|
|
12
|
+
(relationship_pattern left: (node_pattern subject: (_ identifier: (_) @local.definition)))
|
|
13
|
+
(relationship_pattern left: (node_pattern subject: (_ labels: (labels (symbol) @local.definition))))
|
|
14
|
+
(relationship_pattern right: (node_pattern subject: (_ identifier: (_) @local.definition)))
|
|
15
|
+
(relationship_pattern right: (node_pattern subject: (_ labels: (labels (symbol) @local.definition))))
|
|
16
|
+
(relationship_pattern kind: (right_arrow subject: (_ identifier: (_) @local.definition)))
|
|
17
|
+
(relationship_pattern kind: (right_arrow subject: (_ labels: (labels (symbol) @local.definition))))
|
|
18
|
+
(relationship_pattern kind: (left_arrow subject: (_ identifier: (_) @local.definition)))
|
|
19
|
+
(relationship_pattern kind: (left_arrow subject: (_ labels: (labels (symbol) @local.definition))))
|
|
20
|
+
(relationship_pattern kind: (undirected_arrow subject: (_ identifier: (_) @local.definition)))
|
|
21
|
+
(relationship_pattern kind: (undirected_arrow subject: (_ labels: (labels (symbol) @local.definition))))
|
|
22
|
+
(relationship_pattern kind: (bidirectional_arrow subject: (_ identifier: (_) @local.definition)))
|
|
23
|
+
(relationship_pattern kind: (bidirectional_arrow subject: (_ labels: (labels (symbol) @local.definition))))
|
|
24
|
+
(identified_annotation identifier: (_) @local.definition)
|
|
25
|
+
(identified_annotation labels: (labels (symbol) @local.definition))
|
|
26
|
+
|
|
27
|
+
; References: pattern_reference identifier
|
|
28
|
+
(pattern_reference identifier: (_) @local.reference)
|
package/src/parser.c
CHANGED
package/tree-sitter-gram.wasm
CHANGED
|
Binary file
|