chore: update thrift queries

This commit is contained in:
Amaan Qureshi 2023-01-28 15:47:47 -05:00 committed by Stephan Seitz
parent dd94001fcb
commit c610c78576
2 changed files with 35 additions and 9 deletions

View file

@ -399,7 +399,7 @@
"revision": "0ff887f2a60a147452d52db060de6b42f42f1441"
},
"thrift": {
"revision": "967048ad0c4fbf93c25f5a0c848ad30b0932c9c4"
"revision": "a4e433e7198c811d44164d50c491c82ec533dfdc"
},
"tiger": {
"revision": "a233ebe360a73a92c50978e5c4e9e471bc59ff42"

View file

@ -1,24 +1,27 @@
; Namespace
; Namespace
(namespace_definition) @namespace
; Includes
[
"include"
[
"cpp_include"
] @include
(include_path) @string
(package_path) @string
; Types
(primitive_type) @type.builtin
(primitive) @type.builtin
[
"list"
"map"
"set"
"sink"
"stream"
"void"
] @type.builtin
@ -81,6 +84,7 @@
"exception"
"extends"
"include"
"interaction"
"namespace"
"oneway"
"optional"
@ -96,7 +100,6 @@
[
"async"
"byte"
"cocoa_prefix"
"cpp_namespace"
"csharp_namespace"
@ -115,10 +118,28 @@
"xsd_optional"
] @keyword
; Extended Kewords
[
"client"
"idempotent"
"package"
"performs"
"permanent"
"readonly"
"server"
"safe"
"stateful"
"transient"
] @keyword
; Literals
(string_literal) @string
[
(annotation_value)
(string)
] @string
(escape_sequence) @string.escape
(uri) @string.special
@ -129,22 +150,27 @@
(boolean) @boolean
; Typedefs
(typedef_definition) @type.definition
(namespace_scope) @type.definition
; Misc
; Qualifiers
[
"const"
(exception_modifier)
(field_modifier)
(function_modifier)
] @type.qualifier
; Punctuation
[
"*"
"&"
"@"
] @punctuation.special
(field_modifier) @attribute
["{" "}"] @punctuation.bracket
["(" ")"] @punctuation.bracket