Files
helix/runtime/queries/graphql/highlights.scm
mayandGitHub 9e6c2a2774 fix(queries): incorrect query captures (#15634)
* highlights(vim): fix `@keyword.control.excpetion` capture name

* highlights(pascal, php-only): fix captures for numbers

* highlights(graphql): `@constants.*` => `@constant.*`

* highlights(bass): `@keyword.builtin` => `@keyword`

`@keyword.builtin` is not an actual helix theme scope, and
nvim-treesitter just uses `@keyword` for that, so align with that

* highlights(v): `@keyword.control.function` => `@keyword.function`

* highlights(lean, latex): `@include` => `@keyword.control.import`

* highlights(latex): `@markup.link.uri` => `@markup.link.url`

* highlights(ink): `@commment` => `@comment`

* highlights(vhdl): `@punctuation.delimiters` => `@punctuation.delimiter`

* highlights(bicep): `@constant.number` => `@constant.numeric`

* higlights(haskell): `@variable.member` => `@variable.other.member`

* highlights(chuck): fix typo in `@keyword.control.conditional`

* highlights(ripple): `@number` => `@constant.numeric`

* highlights(t32): use the correct `@keyword.*` captures

* highlights(scheme): use correct captures for conditional keywords

* highlights(elixir, hurl, latex): use `@string.regexp`
2026-04-15 11:45:59 +09:00

164 lines
2.2 KiB
Scheme

; Types
;------
(scalar_type_definition
(name) @type)
(object_type_definition
(name) @type)
(interface_type_definition
(name) @type)
(union_type_definition
(name) @type)
(enum_type_definition
(name) @type)
(input_object_type_definition
(name) @type)
(directive_definition
(name) @type)
(directive_definition
"@" @type)
(scalar_type_extension
(name) @type)
(object_type_extension
(name) @type)
(interface_type_extension
(name) @type)
(union_type_extension
(name) @type)
(enum_type_extension
(name) @type)
(input_object_type_extension
(name) @type)
(named_type
(name) @type)
(directive) @type
; Properties
;-----------
(field
(name) @variable.other.member)
(field
(alias
(name) @variable.other.member))
(field_definition
(name) @variable.other.member)
(object_value
(object_field
(name) @variable.other.member))
(enum_value
(name) @variable.other.member)
; Variable Definitions and Arguments
;-----------------------------------
(operation_definition
(name) @variable)
(fragment_name
(name) @variable)
(input_fields_definition
(input_value_definition
(name) @variable.parameter))
(argument
(name) @variable.parameter)
(arguments_definition
(input_value_definition
(name) @variable.parameter))
(variable_definition
(variable) @variable.parameter)
(argument
(value
(variable) @variable))
; Constants
;----------
(string_value) @string
(int_value) @constant.numeric.integer
(float_value) @constant.numeric.float
(boolean_value) @constant.builtin.boolean
; Literals
;---------
(description) @comment
(comment) @comment
(directive_location
(executable_directive_location) @type.builtin)
(directive_location
(type_system_directive_location) @type.builtin)
; Keywords
;----------
[
"query"
"mutation"
"subscription"
"fragment"
"scalar"
"type"
"interface"
"union"
"enum"
"input"
"extend"
"directive"
"schema"
"on"
"repeatable"
"implements"
] @keyword
; Punctuation
;------------
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket
"=" @operator
"|" @punctuation.delimiter
"&" @punctuation.delimiter
":" @punctuation.delimiter
"..." @punctuation.special
"!" @punctuation.special