From 61872de6c05f060a7e854ed1bcb7347a793c2e3a Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Thu, 8 Apr 2021 23:25:54 +0900 Subject: queries: rust: highlight number constants correctly. --- runtime/queries/rust/highlights.scm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'runtime/queries') 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 -- cgit v1.2.3-70-g09d2