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" "revision": "0ff887f2a60a147452d52db060de6b42f42f1441"
}, },
"thrift": { "thrift": {
"revision": "967048ad0c4fbf93c25f5a0c848ad30b0932c9c4" "revision": "a4e433e7198c811d44164d50c491c82ec533dfdc"
}, },
"tiger": { "tiger": {
"revision": "a233ebe360a73a92c50978e5c4e9e471bc59ff42" "revision": "a233ebe360a73a92c50978e5c4e9e471bc59ff42"

View file

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