on master help sign in
runtime: Query improvements
9b9c3c7Blaž Hrastnik
runtime/queries/c/highlights.scm+1−1
@@ -61,7 +61,7 @@
61
61
62(null) @constant
62(null) @constant
63(number_literal) @number
63(number_literal) @number
64−(char_literal) @number
64+(char_literal) @string
65
65
66(call_expression
66(call_expression
67 function: (identifier) @function)
67 function: (identifier) @function)
runtime/queries/javascript/highlights.scm+1−1
@@ -87,7 +87,7 @@
87 (template_string)
87 (template_string)
88] @string
88] @string
89
89
90−(regex) @string.special
90+(regex) @string.regexp
91(number) @number
91(number) @number
92
92
93; Tokens
93; Tokens
runtime/queries/lua/highlights.scm+4−4
@@ -23,27 +23,27 @@
23 "for"
23 "for"
24 "do"
24 "do"
25 "end"
25 "end"
26−] @keyword.control.loop)
26+] @keyword.control.repeat)
27
27
28(for_in_statement
28(for_in_statement
29[
29[
30 "for"
30 "for"
31 "do"
31 "do"
32 "end"
32 "end"
33−] @keyword.control.loop)
33+] @keyword.control.repeat)
34
34
35(while_statement
35(while_statement
36[
36[
37 "while"
37 "while"
38 "do"
38 "do"
39 "end"
39 "end"
40−] @keyword.control.loop)
40+] @keyword.control.repeat)
41
41
42(repeat_statement
42(repeat_statement
43[
43[
44 "repeat"
44 "repeat"
45 "until"
45 "until"
46−] @keyword.control.loop)
46+] @keyword.control.repeat)
47
47
48(do_statement
48(do_statement
49[
49[
runtime/queries/ruby/highlights.scm+1−1
@@ -100,7 +100,7 @@
100 (bare_symbol)
100 (bare_symbol)
101] @string.special.symbol
101] @string.special.symbol
102
102
103−(regex) @string.special.regex
103+(regex) @string.regexp
104(escape_sequence) @escape
104(escape_sequence) @escape
105
105
106[
106[