Skip to content

Commit

Permalink
update more queries
Browse files Browse the repository at this point in the history
  • Loading branch information
kirawi committed Oct 31, 2021
1 parent 23641c8 commit 19ef533
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 6 deletions.
4 changes: 2 additions & 2 deletions runtime/queries/c-sharp/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"$@\""
] @string

(boolean_literal) @constant.builtin.boolean
[
(boolean_literal)
(null_literal)
(void_keyword)
] @constant.builtin
Expand Down Expand Up @@ -98,7 +98,7 @@
;; Keywords
(modifier) @keyword
(this_expression) @keyword
(escape_sequence) @keyword
(escape_sequence) @constant.character.escape

[
"as"
Expand Down
16 changes: 16 additions & 0 deletions runtime/queries/json/highlights.scm
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
[
(true)
(false)
] @constant.builtin.boolean
(null) @constant.builtin
(number) @constant.numeric
(pair
key: (_) @keyword)

(string) @string
(escape_sequence) @constant.character.escape
(ERROR) @error

"," @punctuation.delimiter
[
"["
"]"
"{"
"}"
] @punctuation.bracket

(object
"{" @constant.character.escape
Expand Down
2 changes: 1 addition & 1 deletion runtime/queries/ocaml/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

(quoted_string "{" @string "}" @string) @string

(escape_sequence) @string.escape
(escape_sequence) @constant.character.escape

[
(conversion_specification)
Expand Down
2 changes: 1 addition & 1 deletion runtime/queries/php/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

(string) @string
(heredoc) @string
(boolean) @constant.builtin
(boolean) @constant.builtin.boolean
(null) @constant.builtin
(integer) @constant.numeric.integer
(float) @constant.numeric.float
Expand Down
2 changes: 1 addition & 1 deletion runtime/queries/protobuf/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

(intLit) @constant.numeric.integer
(floatLit) @constant.numeric.float
(boolLit) @constant.builtin
(boolLit) @constant.builtin.boolean
(strLit) @string

(constant) @constant
Expand Down
2 changes: 1 addition & 1 deletion runtime/queries/yaml/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
(null_scalar) @constant.builtin
(double_quote_scalar) @string
(single_quote_scalar) @string
(escape_sequence) @string.escape
(escape_sequence) @constant.character.escape
(integer_scalar) @constant.numeric.integer
(float_scalar) @constant.numeric.float
(comment) @comment
Expand Down

0 comments on commit 19ef533

Please sign in to comment.