mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
feat(thrift): use better queries, namely for idents (#4197)
This commit is contained in:
parent
8448261061
commit
b300d903b0
3 changed files with 23 additions and 5 deletions
|
|
@ -390,7 +390,7 @@
|
||||||
"revision": "0ff887f2a60a147452d52db060de6b42f42f1441"
|
"revision": "0ff887f2a60a147452d52db060de6b42f42f1441"
|
||||||
},
|
},
|
||||||
"thrift": {
|
"thrift": {
|
||||||
"revision": "f1029a93e59cf61df759d54d56145ba65c3a3040"
|
"revision": "999a27d87b8f90a74306d4e79c5e22db3ab61633"
|
||||||
},
|
},
|
||||||
"tiger": {
|
"tiger": {
|
||||||
"revision": "a233ebe360a73a92c50978e5c4e9e471bc59ff42"
|
"revision": "a233ebe360a73a92c50978e5c4e9e471bc59ff42"
|
||||||
|
|
|
||||||
|
|
@ -1250,7 +1250,6 @@ list.thrift = {
|
||||||
files = { "src/parser.c" },
|
files = { "src/parser.c" },
|
||||||
},
|
},
|
||||||
maintainers = { "@amaanq", "@duskmoon314" },
|
maintainers = { "@amaanq", "@duskmoon314" },
|
||||||
experimental = true,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
list.tiger = {
|
list.tiger = {
|
||||||
|
|
|
||||||
|
|
@ -27,16 +27,31 @@
|
||||||
|
|
||||||
; Fields
|
; Fields
|
||||||
|
|
||||||
(field) @field
|
(field_identifier) @field
|
||||||
|
|
||||||
; Parameters
|
; Parameters
|
||||||
|
|
||||||
(parameter) @parameter
|
(param_identifier) @parameter
|
||||||
|
|
||||||
; Variables
|
; Variables
|
||||||
|
|
||||||
(identifier) @variable
|
(identifier) @variable
|
||||||
|
|
||||||
|
; Constants
|
||||||
|
|
||||||
|
(const_identifier) @constant
|
||||||
|
(enum_member) @constant
|
||||||
|
|
||||||
|
; Types
|
||||||
|
|
||||||
|
(enum_identifier) @type
|
||||||
|
(field_type) @type
|
||||||
|
(type_identifier) @type
|
||||||
|
|
||||||
|
; Attributes
|
||||||
|
|
||||||
|
(annotation_identifier) @attribute
|
||||||
|
|
||||||
; Operators
|
; Operators
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -75,7 +90,8 @@
|
||||||
"void"
|
"void"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
; Deprecated
|
; Deprecated Keywords
|
||||||
|
|
||||||
[
|
[
|
||||||
"async"
|
"async"
|
||||||
"byte"
|
"byte"
|
||||||
|
|
@ -110,6 +126,7 @@
|
||||||
(boolean) @boolean
|
(boolean) @boolean
|
||||||
|
|
||||||
(typedef_definition) @type.definition
|
(typedef_definition) @type.definition
|
||||||
|
(namespace_definition) @type.definition
|
||||||
|
|
||||||
[
|
[
|
||||||
"const"
|
"const"
|
||||||
|
|
@ -129,6 +146,8 @@
|
||||||
|
|
||||||
["[" "]"] @punctuation.bracket
|
["[" "]"] @punctuation.bracket
|
||||||
|
|
||||||
|
["<" ">"] @punctuation.bracket
|
||||||
|
|
||||||
[
|
[
|
||||||
";"
|
";"
|
||||||
","
|
","
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue