Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions runtime/queries/bass/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
(list . (symbol) @function.macro (#match? @function.macro "^(op|fn|current-scope|quote|let|provide|module|or|and|->|curryfn|for|\\$|linux)$"))
(cons . (symbol) @function.macro (#match? @function.macro "^(op|fn|current-scope|quote|let|provide|module|or|and|->|curryfn|for|\\$|linux)$"))

(list . (symbol) @keyword.builtin (#match? @keyword.builtin "^(do|doc)$"))
(cons . (symbol) @keyword.builtin (#match? @keyword.builtin "^(do|doc)$"))
(list . (symbol) @keyword (#match? @keyword "^(do|doc)$"))
(cons . (symbol) @keyword (#match? @keyword "^(do|doc)$"))

(list . (symbol) @keyword.control.import (#match? @keyword.control.import "^(use|import|load)$"))
(cons . (symbol) @keyword.control.import (#match? @keyword.control.import "^(use|import|load)$"))
Expand Down
2 changes: 1 addition & 1 deletion runtime/queries/bicep/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@

(escape_sequence) @constant.character

(number) @constant.number
(number) @constant.numeric

(boolean) @constant.builtin.boolean

Expand Down
2 changes: 1 addition & 1 deletion runtime/queries/chuck/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"do" @keyword.control.repeat
"fun" @keyword.function
"function" @keyword.function
"if" @keyword.control.conditionl
"if" @keyword.control.conditional
"repeat" @keyword.control.repeat
"return" @keyword.control.return
"spork" @function.builtin
Expand Down
6 changes: 3 additions & 3 deletions runtime/queries/elixir/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@

(sigil
(sigil_name) @__name__
quoted_start: _ @string.regex
quoted_end: _ @string.regex
(#match? @__name__ "^[rR]$")) @string.regex
quoted_start: _ @string.regexp
quoted_end: _ @string.regexp
(#match? @__name__ "^[rR]$")) @string.regexp

; Calls

Expand Down
6 changes: 3 additions & 3 deletions runtime/queries/graphql/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@

(string_value) @string

(int_value) @constants.numeric.integer
(int_value) @constant.numeric.integer

(float_value) @constants.numeric.float
(float_value) @constant.numeric.float

(boolean_value) @constants.builtin.boolean
(boolean_value) @constant.builtin.boolean

; Literals
;---------
Expand Down
4 changes: 2 additions & 2 deletions runtime/queries/haskell/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -429,10 +429,10 @@
; Fields

(field_name
(variable) @variable.member)
(variable) @variable.other.member)

(import_name
(name)
.
(children
(variable) @variable.member))
(variable) @variable.other.member))
2 changes: 1 addition & 1 deletion runtime/queries/hurl/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
(quoted_string) @string
(json_string) @string
(file_value) @string.special.path
(regex) @string.regex
(regex) @string.regexp

[
"\\"
Expand Down
2 changes: 1 addition & 1 deletion runtime/queries/ink/highlights.scm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; tags and labels
(label) @label
(tag (identifier) @commment)
(tag (identifier) @comment)
(tag) @comment

; values
Expand Down
6 changes: 3 additions & 3 deletions runtime/queries/latex/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
((generic_command
command: (command_name) @_name
.
arg: (curly_group (_) @markup.link.uri))
arg: (curly_group (_) @markup.link.url))
(#match? @_name "^(\\\\url|\\\\href)$"))

;; File inclusion commands
Expand All @@ -228,8 +228,8 @@
command: _ @keyword.control.import
path: (curly_group_path) @string)
(biblatex_include
"\\addbibresource" @include
glob: (curly_group_glob_pattern) @string.regex)
"\\addbibresource" @keyword.control.import
glob: (curly_group_glob_pattern) @string.regexp)

(graphics_include
command: _ @keyword.control.import
Expand Down
2 changes: 1 addition & 1 deletion runtime/queries/lean/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

["for" "in" "do"] @keyword.control.repeat

(import) @include
"import" @keyword.control.import

; Tokens

Expand Down
2 changes: 1 addition & 1 deletion runtime/queries/pascal/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@

; -- Literals

(literalNumber) @constant.builtin.numeric
(literalNumber) @constant.numeric
(literalString) @string

; -- Builtin constants
Expand Down
4 changes: 2 additions & 2 deletions runtime/queries/php-only/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
] @string
(boolean) @constant.builtin.boolean
(null) @constant.builtin
(integer) @constant.builtin.integer
(float) @constant.builtin.float
(integer) @constant.numeric.integer
(float) @constant.numeric.float
(comment) @comment

"$" @operator
Expand Down
2 changes: 1 addition & 1 deletion runtime/queries/ripple/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"${" @punctuation.special
"}" @punctuation.special)

(number) @number
(number) @constant.numeric
(true) @constant.builtin.boolean
(false) @constant.builtin.boolean
(null) @constant.builtin
Expand Down
4 changes: 2 additions & 2 deletions runtime/queries/scheme/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@

(list
.
((symbol) @keyword.conditional
(#any-of? @keyword.conditional "if" "cond" "case" "when" "unless")))
((symbol) @keyword.control.conditional
(#any-of? @keyword.control.conditional "if" "cond" "case" "when" "unless")))

(list
.
Expand Down
16 changes: 8 additions & 8 deletions runtime/queries/t32/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@
; Returns
(
(command_expression
command: (identifier) @keyword.return)
(#match? @keyword.return "^[eE][nN][dD]([dD][oO])?$")
command: (identifier) @keyword.control.return)
(#match? @keyword.control.return "^[eE][nN][dD]([dD][oO])?$")
)
(
(command_expression
command: (identifier) @keyword.return)
(#match? @keyword.return "^[rR][eE][tT][uU][rR][nN]$")
command: (identifier) @keyword.control.return)
(#match? @keyword.control.return "^[rR][eE][tT][uU][rR][nN]$")
)


Expand Down Expand Up @@ -213,14 +213,14 @@

; Control flow
(if_block
command: (identifier) @keyword.control.conditional.if)
command: (identifier) @keyword.control.conditional)
(else_block
command: (identifier) @keyword.control.control.else)
command: (identifier) @keyword.control.conditional)

(while_block
command: (identifier) @keyword.control.repeat.while)
command: (identifier) @keyword.control.repeat)
(repeat_block
command: (identifier) @keyword.control.loop)
command: (identifier) @keyword.control.repeat)



Expand Down
2 changes: 1 addition & 1 deletion runtime/queries/v/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@

[
"fn"
] @keyword.control.function
] @keyword.function


[
Expand Down
2 changes: 1 addition & 1 deletion runtime/queries/vhdl/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
","
"."
";"
] @punctuation.delimiters
] @punctuation.delimiter

[
"("
Expand Down
2 changes: 1 addition & 1 deletion runtime/queries/vim/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"finally"
"endtry"
"throw"
] @keyword.control.except
] @keyword.control.exception

[
"for"
Expand Down