mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
graphql: add missing highlights
* enum values * comment * input parameters * 'implements' keyword * include '@' in directive name * fragment definition and spread
This commit is contained in:
parent
382e09aa56
commit
3f617edd50
1 changed files with 14 additions and 1 deletions
|
|
@ -22,6 +22,9 @@
|
||||||
(directive_definition
|
(directive_definition
|
||||||
(name) @type)
|
(name) @type)
|
||||||
|
|
||||||
|
(directive_definition
|
||||||
|
"@" @type)
|
||||||
|
|
||||||
(scalar_type_extension
|
(scalar_type_extension
|
||||||
(name) @type)
|
(name) @type)
|
||||||
|
|
||||||
|
|
@ -62,12 +65,22 @@
|
||||||
(object_field
|
(object_field
|
||||||
(name) @property))
|
(name) @property))
|
||||||
|
|
||||||
|
(enum_value
|
||||||
|
(name) @property)
|
||||||
|
|
||||||
; Variable Definitions and Arguments
|
; Variable Definitions and Arguments
|
||||||
;-----------------------------------
|
;-----------------------------------
|
||||||
|
|
||||||
(operation_definition
|
(operation_definition
|
||||||
(name) @variable)
|
(name) @variable)
|
||||||
|
|
||||||
|
(fragment_name
|
||||||
|
(name) @variable)
|
||||||
|
|
||||||
|
(input_fields_definition
|
||||||
|
(input_value_definition
|
||||||
|
(name) @parameter))
|
||||||
|
|
||||||
(argument
|
(argument
|
||||||
(name) @parameter)
|
(name) @parameter)
|
||||||
|
|
||||||
|
|
@ -125,6 +138,7 @@
|
||||||
"schema"
|
"schema"
|
||||||
"on"
|
"on"
|
||||||
"repeatable"
|
"repeatable"
|
||||||
|
"implements"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
; Punctuation
|
; Punctuation
|
||||||
|
|
@ -147,4 +161,3 @@
|
||||||
|
|
||||||
"..." @punctuation.special
|
"..." @punctuation.special
|
||||||
"!" @punctuation.special
|
"!" @punctuation.special
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue