Fixing syntax highlighting
This commit is contained in:
parent
56f54d9bcb
commit
3bc6980047
|
|
@ -11,7 +11,7 @@
|
||||||
"@match" @keyword.conditional
|
"@match" @keyword.conditional
|
||||||
"@break" @keyword.control
|
"@break" @keyword.control
|
||||||
"@continue" @keyword.control
|
"@continue" @keyword.control
|
||||||
"@safe" @keyword.function
|
"safe" @keyword.function
|
||||||
"else" @keyword.conditional
|
"else" @keyword.conditional
|
||||||
"if" @keyword.conditional
|
"if" @keyword.conditional
|
||||||
"let" @keyword
|
"let" @keyword
|
||||||
|
|
@ -24,7 +24,6 @@
|
||||||
(unary_operator) @operator
|
(unary_operator) @operator
|
||||||
"=>" @operator
|
"=>" @operator
|
||||||
"=" @operator
|
"=" @operator
|
||||||
"::" @punctuation.delimiter
|
|
||||||
|
|
||||||
; Punctuation
|
; Punctuation
|
||||||
"{" @punctuation.bracket
|
"{" @punctuation.bracket
|
||||||
|
|
@ -42,7 +41,6 @@
|
||||||
; Literals
|
; Literals
|
||||||
(string_literal) @string
|
(string_literal) @string
|
||||||
(char_literal) @character
|
(char_literal) @character
|
||||||
(number_literal) @number
|
|
||||||
(integer_literal) @number
|
(integer_literal) @number
|
||||||
(float_literal) @number
|
(float_literal) @number
|
||||||
(boolean_literal) @boolean
|
(boolean_literal) @boolean
|
||||||
|
|
@ -50,7 +48,6 @@
|
||||||
|
|
||||||
; Types
|
; Types
|
||||||
(primitive_type) @type.builtin
|
(primitive_type) @type.builtin
|
||||||
(rust_type) @type
|
|
||||||
(generic_params (identifier) @type)
|
(generic_params (identifier) @type)
|
||||||
(generic_type (rust_path) @type)
|
(generic_type (rust_path) @type)
|
||||||
|
|
||||||
|
|
@ -73,7 +70,6 @@
|
||||||
|
|
||||||
; HTML elements
|
; HTML elements
|
||||||
(tag_name) @tag
|
(tag_name) @tag
|
||||||
(html_element) @tag
|
|
||||||
(attribute_name) @attribute
|
(attribute_name) @attribute
|
||||||
(attribute_value) @string
|
(attribute_value) @string
|
||||||
|
|
||||||
|
|
@ -83,8 +79,6 @@
|
||||||
(import_statement (string_literal) @string.special)
|
(import_statement (string_literal) @string.special)
|
||||||
|
|
||||||
; Expressions
|
; Expressions
|
||||||
(simple_expression "@" @punctuation.special)
|
|
||||||
(complex_expression "@" @punctuation.special)
|
|
||||||
(expression_path (identifier) @variable)
|
(expression_path (identifier) @variable)
|
||||||
(field_access (identifier) @property)
|
(field_access (identifier) @property)
|
||||||
(method_call (identifier) @function.method)
|
(method_call (identifier) @function.method)
|
||||||
|
|
@ -95,12 +89,6 @@
|
||||||
(struct_pattern (rust_path) @type)
|
(struct_pattern (rust_path) @type)
|
||||||
(field_pattern (identifier) @property)
|
(field_pattern (identifier) @property)
|
||||||
|
|
||||||
; Control flow
|
|
||||||
(if_statement) @conditional
|
|
||||||
(for_loop) @repeat
|
|
||||||
(match_statement) @conditional
|
|
||||||
(match_arm) @conditional
|
|
||||||
|
|
||||||
; Comments
|
; Comments
|
||||||
(template_comment) @comment
|
(template_comment) @comment
|
||||||
(html_comment) @comment
|
(html_comment) @comment
|
||||||
|
|
@ -118,3 +106,6 @@
|
||||||
|
|
||||||
; Text content
|
; Text content
|
||||||
(text_content) @text
|
(text_content) @text
|
||||||
|
|
||||||
|
; Catch-all
|
||||||
|
(identifier) @variable
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue