diff options
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/fusion/highlights.scm | 69 |
1 files changed, 46 insertions, 23 deletions
diff --git a/queries/fusion/highlights.scm b/queries/fusion/highlights.scm index ba655c0b5..b12eadccd 100644 --- a/queries/fusion/highlights.scm +++ b/queries/fusion/highlights.scm @@ -1,8 +1,25 @@ (comment) @comment +(afx_comment) @comment + +; identifiers afx +(afx_opening_element + (afx_identifier) @tag) +(afx_closing_element + (afx_identifier) @tag) +(afx_element_self_closing + (afx_identifier) @tag) + +(afx_attribute + (afx_property_identifier) @tag.attribute) ; identifiers eel (eel_object_path + (eel_path_identifier) @variable.builtin + (#match? @variable.builtin "^(this|props)$") +) + +(eel_object_path (eel_path_identifier) @variable) (eel_object_pair @@ -12,7 +29,6 @@ (eel_parameter) @variable - ; identifiers fusion ; ----------- @@ -38,38 +54,47 @@ ; tokens ; ------ +(afx_opening_element + [ + "<" + ">" + ] @punctuation.bracket) + + (afx_closing_element + [ + "<" + ">" + "/" + ] @punctuation.bracket) + +(afx_element_self_closing + [ + "<" + "/>" + ] @punctuation.bracket) [ (package_name) (alias_namespace) ] @namespace -[ - "=" - "<" - "&&" - "and" - "||" - "or" - "*" - "/" - "%" - "+" - "-" - "!" - "not" - (deletion) -] @operator +(namespace_declaration "=" @operator) +(assignment "=" @operator) +(copy "<" @operator) +(deletion) @operator +(eel_binary_expression + operator: _ @operator) +(eel_not_expression + [ + "!" + "not" + ] @operator) (string) @string (number) @number (boolean) @boolean (null) @constant.builtin - -; punctuation -; ---------- - [ "(" ")" @@ -84,5 +109,3 @@ "." "?" ] @punctuation.delimiter - - |
