From a24fb17b2a978d3165bd6304e9edd69bddb6dd82 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Fri, 1 Apr 2022 17:14:25 +0900 Subject: Add JSX highlighting queries --- runtime/queries/javascript/highlights-jsx.scm | 4 ---- runtime/queries/javascript/highlights.scm | 8 ++++++++ 2 files changed, 8 insertions(+), 4 deletions(-) delete mode 100644 runtime/queries/javascript/highlights-jsx.scm (limited to 'runtime') diff --git a/runtime/queries/javascript/highlights-jsx.scm b/runtime/queries/javascript/highlights-jsx.scm deleted file mode 100644 index 751da081..00000000 --- a/runtime/queries/javascript/highlights-jsx.scm +++ /dev/null @@ -1,4 +0,0 @@ -(jsx_opening_element (identifier) @tag) -(jsx_closing_element (identifier) @tag) -(jsx_self_closing_element (identifier) @tag) -(jsx_attribute (property_identifier) @attribute) diff --git a/runtime/queries/javascript/highlights.scm b/runtime/queries/javascript/highlights.scm index 6163b680..96bad862 100644 --- a/runtime/queries/javascript/highlights.scm +++ b/runtime/queries/javascript/highlights.scm @@ -1,3 +1,11 @@ +; JSX +;---- + +(jsx_opening_element (identifier) @tag) +(jsx_closing_element (identifier) @tag) +(jsx_self_closing_element (identifier) @tag) +(jsx_attribute (property_identifier) @variable.other.member) + ; Special identifiers ;-------------------- -- cgit v1.2.3-70-g09d2