queries: rust: highlight number constants correctly.
This commit is contained in:
parent
71c06c11cb
commit
61872de6c0
1 changed files with 7 additions and 5 deletions
|
@ -116,13 +116,15 @@
|
||||||
|
|
||||||
(self) @variable.builtin
|
(self) @variable.builtin
|
||||||
|
|
||||||
(char_literal) @string
|
[
|
||||||
(string_literal) @string
|
(char_literal)
|
||||||
(raw_string_literal) @string
|
(string_literal)
|
||||||
|
(raw_string_literal)
|
||||||
|
] @string
|
||||||
|
|
||||||
(boolean_literal) @constant.builtin
|
(boolean_literal) @constant.builtin
|
||||||
(integer_literal) @constant.builtin
|
(integer_literal) @number
|
||||||
(float_literal) @constant.builtin
|
(float_literal) @number
|
||||||
|
|
||||||
(escape_sequence) @escape
|
(escape_sequence) @escape
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue