Skip to content

Commit 1843ea0

Browse files
d-alonsoinaki-amatria
authored andcommitted
Add TypeScript source annotation
1 parent ebb97d5 commit 1843ea0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

grammar.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
// since the parser doesn't support the ^ regex token, a using a seq
1515
// might work as long as the label is optional.
1616
//
17+
18+
// This annotation tells typescript where to find the DSL. Useful for LSP
19+
// navigation and hover documentation
20+
/// <reference types="tree-sitter-cli/dsl" />
21+
// @ts-check
22+
1723
const PREC = {
1824
ASSIGNMENT: -10,
1925
DEFAULT: 0,

0 commit comments

Comments
 (0)