aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-04-08 14:25:54 +0000
committerBlaž Hrastnik2021-04-08 14:25:54 +0000
commit61872de6c05f060a7e854ed1bcb7347a793c2e3a (patch)
tree9ff4e55a248e06e197146cd53c37f0f698eb3924 /runtime/queries
parent71c06c11cb2f3831326ec10035b66ac6df075c8a (diff)
queries: rust: highlight number constants correctly.
Diffstat (limited to 'runtime/queries')
-rw-r--r--runtime/queries/rust/highlights.scm12
1 files changed, 7 insertions, 5 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm
index 196d483c..71ef17ab 100644
--- a/runtime/queries/rust/highlights.scm
+++ b/runtime/queries/rust/highlights.scm
@@ -116,13 +116,15 @@
(self) @variable.builtin
-(char_literal) @string
-(string_literal) @string
-(raw_string_literal) @string
+[
+(char_literal)
+(string_literal)
+(raw_string_literal)
+] @string
(boolean_literal) @constant.builtin
-(integer_literal) @constant.builtin
-(float_literal) @constant.builtin
+(integer_literal) @number
+(float_literal) @number
(escape_sequence) @escape