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")
|
||||
)
|
||||
|
||||
(token_repetition_pattern) @punctuation.delimiter
|
||||
(token_repetition_pattern [")" "(" "$"] @punctuation.special)
|
||||
(token_repetition_pattern "?" @operator)
|
||||
|
||||
|
|
|
@ -113,10 +113,10 @@
|
|||
name: (_) @_macro_name)
|
||||
(identifier) @_macro_name
|
||||
]
|
||||
(token_tree
|
||||
. (string_literal
|
||||
(string_content) @injection.content
|
||||
)
|
||||
(token_tree . [
|
||||
(string_literal (string_content) @injection.content)
|
||||
(raw_string_literal (string_content) @injection.content)
|
||||
]
|
||||
)
|
||||
)
|
||||
(#any-of? @_macro_name
|
||||
|
@ -156,9 +156,10 @@
|
|||
]
|
||||
(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
|
||||
|
@ -185,9 +186,10 @@
|
|||
(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
|
||||
|
|
Loading…
Reference in New Issue