mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 08:50:11 -04:00
feat(idl): update idl parser and queries (#6854)
This commit is contained in:
parent
7adae51ff3
commit
fe5c581ed5
3 changed files with 69 additions and 5 deletions
|
|
@ -318,7 +318,7 @@
|
||||||
"revision": "6858695eba0e63b9e0fceef081d291eb352abce8"
|
"revision": "6858695eba0e63b9e0fceef081d291eb352abce8"
|
||||||
},
|
},
|
||||||
"idl": {
|
"idl": {
|
||||||
"revision": "966797b8c581526efdd2252f815dde6de1a8f932"
|
"revision": "1121e5cf044ecab7202695174c74cfa89a18b6a0"
|
||||||
},
|
},
|
||||||
"ini": {
|
"ini": {
|
||||||
"revision": "87176e524f0a98f5be75fa44f4f0ff5c6eac069c"
|
"revision": "87176e524f0a98f5be75fa44f4f0ff5c6eac069c"
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,27 @@
|
||||||
"finder"
|
"finder"
|
||||||
] @keyword.modifier
|
] @keyword.modifier
|
||||||
|
|
||||||
|
[
|
||||||
|
"SEQUENTIAL"
|
||||||
|
"HASH"
|
||||||
|
"FINAL"
|
||||||
|
"APPENDABLE"
|
||||||
|
"MUTABLE"
|
||||||
|
"c"
|
||||||
|
"c++"
|
||||||
|
"java"
|
||||||
|
"idl"
|
||||||
|
"*"
|
||||||
|
"BEGIN_FILE"
|
||||||
|
"BEFORE_DECLARATION"
|
||||||
|
"BEGIN_DECLARATION"
|
||||||
|
"END_DECLARATION"
|
||||||
|
"AFTER_DECLARATION"
|
||||||
|
"END_FILE"
|
||||||
|
"CORBA"
|
||||||
|
"DDS"
|
||||||
|
] @constant
|
||||||
|
|
||||||
[
|
[
|
||||||
"switch"
|
"switch"
|
||||||
"case"
|
"case"
|
||||||
|
|
@ -132,11 +153,43 @@
|
||||||
(annotation_appl
|
(annotation_appl
|
||||||
"@" @attribute)
|
"@" @attribute)
|
||||||
|
|
||||||
(annotation_appl
|
(annotation_appl_custom_body
|
||||||
(scoped_name) @attribute)
|
(scoped_name) @attribute)
|
||||||
|
|
||||||
(annotation_appl
|
(annotation_appl_builtin_body
|
||||||
(annotation_built_name) @attribute.builtin)
|
(_
|
||||||
|
[
|
||||||
|
"id"
|
||||||
|
"autoid"
|
||||||
|
"optional"
|
||||||
|
"position"
|
||||||
|
"value"
|
||||||
|
"extensibility"
|
||||||
|
"final"
|
||||||
|
"appendable"
|
||||||
|
"mutable"
|
||||||
|
"key"
|
||||||
|
"must_understand"
|
||||||
|
"default_literal"
|
||||||
|
"default"
|
||||||
|
"range"
|
||||||
|
"min"
|
||||||
|
"max"
|
||||||
|
"unit"
|
||||||
|
"bit_bound"
|
||||||
|
"external"
|
||||||
|
"nested"
|
||||||
|
"verbatim"
|
||||||
|
"service"
|
||||||
|
"oneway"
|
||||||
|
"ami"
|
||||||
|
] @attribute.builtin))
|
||||||
|
|
||||||
|
(min_expr
|
||||||
|
"min" @attribute.builtin)
|
||||||
|
|
||||||
|
(max_expr
|
||||||
|
"max" @attribute.builtin)
|
||||||
|
|
||||||
(op_dcl
|
(op_dcl
|
||||||
(identifier) @function.method)
|
(identifier) @function.method)
|
||||||
|
|
@ -339,3 +392,11 @@
|
||||||
|
|
||||||
(element_spec
|
(element_spec
|
||||||
(declarator) @variable.member)
|
(declarator) @variable.member)
|
||||||
|
|
||||||
|
(preproc_include
|
||||||
|
(keyword_include) @type
|
||||||
|
path: (_) @string)
|
||||||
|
|
||||||
|
(system_lib_string
|
||||||
|
"<" @string
|
||||||
|
">" @string)
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,7 @@
|
||||||
|
|
||||||
(definition) @indent.begin
|
(definition) @indent.begin
|
||||||
|
|
||||||
(predefine) @indent.ignore
|
[
|
||||||
|
(preproc_define)
|
||||||
|
(preproc_include)
|
||||||
|
] @indent.ignore
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue