Skip to content

Commit 324674a

Browse files
committed
fix(queries/rust): Use number for float and integer
1 parent a0b1e77 commit 324674a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

queries/rust/highlights.scm

+6-5
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@
104104
(for_expression pattern: [(identifier) @variable
105105
(_ (identifier) @variable)
106106
(struct_pattern
107-
(field_pattern
108-
(shorthand_field_identifier) @variable))])
107+
(field_pattern
108+
(shorthand_field_identifier) @variable))])
109109

110110
(assignment_expression
111111
left: [(identifier) @variable
@@ -171,9 +171,10 @@
171171
(string_literal)
172172
(raw_string_literal)] @string
173173

174-
[(boolean_literal)
175-
(integer_literal)
176-
(float_literal)] @constant.builtin
174+
(boolean_literal) @constant.builtin
175+
176+
[(integer_literal)
177+
(float_literal)] @number
177178

178179
(escape_sequence) @escape
179180

0 commit comments

Comments
 (0)