[language-typescript] Correctly highlight the angle brackets of TSX tags

This commit is contained in:
Andrew Dupont 2024-01-16 17:18:10 -08:00
parent bbf5242d96
commit 99388fabb8
2 changed files with 21 additions and 10 deletions

View File

@ -757,16 +757,18 @@
(binary_expression
["+" "-" "*" "/" "%"] @keyword.operator.arithmetic._LANG_)
[
"=="
"==="
"!="
"!=="
">="
"<="
">"
"<"
] @keyword.operator.comparison._LANG_
(binary_expression
[
"=="
"==="
"!="
"!=="
">="
"<="
">"
"<"
] @keyword.operator.comparison._LANG_
)
["++" "--"] @keyword.operator.increment._LANG_

View File

@ -40,6 +40,14 @@
(jsx_expression) @meta.embedded.line.ts.tsx
(jsx_opening_element
"<" @punctuation.definition.tag.begin.ts.tsx
">" @punctuation.definition.tag.end.ts.tsx)
(jsx_closing_element
"<" @punctuation.definition.tag.begin.ts.tsx
">" @punctuation.definition.tag.end.ts.tsx)
(jsx_self_closing_element
"<" @punctuation.definition.tag.begin.ts.tsx
(#set! capture.final true))
@ -52,6 +60,7 @@
(#set! capture.final true))
; META
; ====