Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/_jsx/highlights.scm')
| -rw-r--r-- | runtime/queries/_jsx/highlights.scm | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/runtime/queries/_jsx/highlights.scm b/runtime/queries/_jsx/highlights.scm deleted file mode 100644 index 70a03091..00000000 --- a/runtime/queries/_jsx/highlights.scm +++ /dev/null @@ -1,43 +0,0 @@ -; Punctuation -; ----------- - -; Handle attribute delimiter (<Component color="red"/>) -(jsx_attribute "=" @punctuation.delimiter) - -; <Component> -(jsx_opening_element ["<" ">"] @punctuation.bracket) - -; </Component> -(jsx_closing_element ["</" ">"] @punctuation.bracket) - -; <Component /> -(jsx_self_closing_element ["<" "/>"] @punctuation.bracket) - -; Attributes -; ---------- - -(jsx_attribute (property_identifier) @attribute) - -; Opening elements -; ---------------- - -(jsx_opening_element (identifier) @tag) - -(jsx_opening_element ((identifier) @constructor - (#match? @constructor "^[A-Z]"))) - -; Closing elements -; ---------------- - -(jsx_closing_element (identifier) @tag) - -(jsx_closing_element ((identifier) @constructor - (#match? @constructor "^[A-Z]"))) - -; Self-closing elements -; --------------------- - -(jsx_self_closing_element (identifier) @tag) - -(jsx_self_closing_element ((identifier) @constructor - (#match? @constructor "^[A-Z]"))) |