mirror of https://github.com/helix-editor/helix
fix: Some Incorrect Rust highlights (#13657)
Co-authored-by: Nik Revenco <154856872+NikitaRevenco@users.noreply.github.com>pull/13491/head^2
parent
921ca08e1b
commit
2baff46b25
|
@ -421,6 +421,7 @@
|
||||||
(#eq? @special "derive")
|
(#eq? @special "derive")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(token_repetition_pattern) @punctuation.delimiter
|
||||||
(token_repetition_pattern [")" "(" "$"] @punctuation.special)
|
(token_repetition_pattern [")" "(" "$"] @punctuation.special)
|
||||||
(token_repetition_pattern "?" @operator)
|
(token_repetition_pattern "?" @operator)
|
||||||
|
|
||||||
|
|
|
@ -113,10 +113,10 @@
|
||||||
name: (_) @_macro_name)
|
name: (_) @_macro_name)
|
||||||
(identifier) @_macro_name
|
(identifier) @_macro_name
|
||||||
]
|
]
|
||||||
(token_tree
|
(token_tree . [
|
||||||
. (string_literal
|
(string_literal (string_content) @injection.content)
|
||||||
(string_content) @injection.content
|
(raw_string_literal (string_content) @injection.content)
|
||||||
)
|
]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
(#any-of? @_macro_name
|
(#any-of? @_macro_name
|
||||||
|
@ -156,9 +156,10 @@
|
||||||
]
|
]
|
||||||
(token_tree
|
(token_tree
|
||||||
. (_)
|
. (_)
|
||||||
. (string_literal
|
. [
|
||||||
(string_content) @injection.content
|
(string_literal (string_content) @injection.content)
|
||||||
)
|
(raw_string_literal (string_content) @injection.content)
|
||||||
|
]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
(#any-of? @_macro_name
|
(#any-of? @_macro_name
|
||||||
|
@ -185,9 +186,10 @@
|
||||||
(token_tree
|
(token_tree
|
||||||
. (_)
|
. (_)
|
||||||
. (_)
|
. (_)
|
||||||
. (string_literal
|
. [
|
||||||
(string_content) @injection.content
|
(string_literal (string_content) @injection.content)
|
||||||
)
|
(raw_string_literal (string_content) @injection.content)
|
||||||
|
]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
(#any-of? @_macro_name
|
(#any-of? @_macro_name
|
||||||
|
|
Loading…
Reference in New Issue