refactor(capnp, thrift): improve grammar & queries to stable for the foreseeable future

This commit is contained in:
Amaan Qureshi 2023-01-23 08:37:15 -05:00 committed by Stephan Seitz
parent 6fcb2e6a9a
commit f826b7af13
5 changed files with 26 additions and 11 deletions

View file

@ -1,6 +1,7 @@
; Preproc (?)
(unique_id) @preproc
(lang_attrs) @preproc
; Includes
@ -21,10 +22,9 @@
"enum"
"group"
"interface"
"List"
"struct"
"union"
] @type.builtin
] @keyword
; Typedefs
@ -36,12 +36,17 @@
; Methods
(annotation_definition_identifier) @method
(method_identifier) @method
; Fields
(field_identifier) @field
; Properties
(property) @property
; Parameters
(param_identifier) @parameter
@ -54,6 +59,7 @@
; Constants
(const_identifier) @constant
(local_const) @constant
(enum_member) @constant
; Types
@ -66,8 +72,8 @@
; Attributes
(attribute) @attribute
(annotation_identifier) @attribute
(attribute) @attribute
; Operators
@ -82,11 +88,14 @@
"extends"
"namespace"
"using"
(void)
(annotation_target)
] @keyword
; Literals
(string_literal) @string
(block_text) @string
(data_string) @string.special
(namespace) @string.special
@ -105,6 +114,7 @@
[
"*"
"$"
] @punctuation.special
["{" "}"] @punctuation.bracket
@ -119,6 +129,8 @@
"->"
] @punctuation.delimiter
(data_hex) @symbol
; Comments
(comment) @comment @spell