feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent c13e28f894
commit 2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions

View file

@ -0,0 +1,165 @@
; 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)
(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)
; Directives
;-----------
(directive_definition
"@" @attribute
(name) @attribute)
(directive) @attribute
; Properties
;-----------
(field
(name) @property)
(field
(alias
(name) @property))
(field_definition
(name) @property)
(object_value
(object_field
(name) @property))
(enum_value
(name) @property)
; Variable Definitions and Arguments
;-----------------------------------
(operation_definition
(name) @variable)
(fragment_name
(name) @variable)
(input_fields_definition
(input_value_definition
(name) @parameter))
(argument
(name) @parameter)
(arguments_definition
(input_value_definition
(name) @parameter))
(variable_definition
(variable) @parameter)
(argument
(value
(variable) @variable))
; Constants
;----------
(string_value) @string
(int_value) @number
(float_value) @float
(boolean_value) @boolean
; Literals
;---------
(description
(string_value) @string.documentation @spell)
(comment) @comment @spell
(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

View file

@ -0,0 +1,9 @@
[
(definition)
(selection)
] @indent.begin
[
"{"
"}"
] @indent.branch

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))