Add JSDoc scope (#29476)
This is a small PR that adds a `.jsdoc` scope to JSDoc tokens, just like
[JSX](3fdbc3090d/crates/languages/src/javascript/highlights.scm (L239))
has a specific scope.
This effectively allows differentiating between JavaScript keywords and
JSDoc tags in comments.
Release Notes:
- Add scope for JSDoc
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
(tag_name) @keyword
|
||||
(type) @type
|
||||
(tag_name) @keyword.jsdoc
|
||||
(type) @type.jsdoc
|
||||
|
||||
Reference in New Issue
Block a user