Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit b09a675

Browse files
committed
⬆️ tree-sitter-jsdoc, generalize tag scopes
1 parent e14dd5c commit b09a675

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

grammars/tree-sitter-jsdoc.cson

+8-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@ scopeName: 'source.jsdoc'
33
type: 'tree-sitter'
44
parser: 'tree-sitter-jsdoc'
55

6-
injectionRegex: 'jsdoc'
6+
injectionRegex: '^jsdoc$'
77

88
scopes:
9-
'"@param", "@returns", "@alias", tag_name': 'keyword.control'
10-
'param_tag > identifier, alias_tag > identifier': 'variable.other.jsdoc'
9+
'tag_name': 'keyword.control'
10+
'identifier': 'variable.other.jsdoc'
1111
'type': 'support.type'
12+
'path_expression > identifier': 'string'
13+
'"."': 'meta.delimiter.period'
14+
'":"': 'meta.delimiter.colon'
15+
'"/"': 'meta.delimiter.slash'
16+
'"#", "~"': 'meta.delimiter'

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"dependencies": {
2323
"tree-sitter-javascript": "^0.13.8",
24-
"tree-sitter-jsdoc": "^0.13.2",
24+
"tree-sitter-jsdoc": "^0.13.3",
2525
"tree-sitter-regex": "^0.13.1"
2626
}
2727
}

0 commit comments

Comments
 (0)