[language-javascript] Two highlighting fixes…

* Revert JSDoc tags to use the `keyword` namespace
* Ensure we always apply `meta.tag.jsx.js` to the area surrounding a JSX opening/closing/self-closing tag element and its punctuation.
This commit is contained in:
Andrew Dupont 2024-01-26 17:26:37 -08:00
parent 11910a11aa
commit 476e784005
2 changed files with 3 additions and 3 deletions

View File

@ -782,11 +782,11 @@
(jsx_opening_element
"<" @punctuation.definition.tag.begin.js
">" @punctuation.definition.tag.end.js)
">" @punctuation.definition.tag.end.js) @meta.tag.js
(jsx_closing_element
"</" @punctuation.definition.tag.begin.js
">" @punctuation.definition.tag.end.js)
">" @punctuation.definition.tag.end.js) @meta.tag.js
(jsx_self_closing_element
"<" @punctuation.definition.tag.begin.js

View File

@ -21,7 +21,7 @@
((inline_tag) @meta.inline-tag.jsdoc.js)
(tag_name) @entity.name.tag.jsdoc.js
(tag_name) @keyword.other.tag.jsdoc.js
((tag (type)) @storage.type.instance.jsdoc.js
; Join the type with its surrounding braces.