mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
[language-typescript] Correctly highlight the angle brackets of TSX tags
This commit is contained in:
parent
bbf5242d96
commit
99388fabb8
@ -757,16 +757,18 @@
|
||||
(binary_expression
|
||||
["+" "-" "*" "/" "%"] @keyword.operator.arithmetic._LANG_)
|
||||
|
||||
[
|
||||
"=="
|
||||
"==="
|
||||
"!="
|
||||
"!=="
|
||||
">="
|
||||
"<="
|
||||
">"
|
||||
"<"
|
||||
] @keyword.operator.comparison._LANG_
|
||||
(binary_expression
|
||||
[
|
||||
"=="
|
||||
"==="
|
||||
"!="
|
||||
"!=="
|
||||
">="
|
||||
"<="
|
||||
">"
|
||||
"<"
|
||||
] @keyword.operator.comparison._LANG_
|
||||
)
|
||||
|
||||
["++" "--"] @keyword.operator.increment._LANG_
|
||||
|
||||
|
@ -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
|
||||
; ====
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user