mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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"
|
||||
},
|
||||
"idl": {
|
||||
"revision": "966797b8c581526efdd2252f815dde6de1a8f932"
|
||||
"revision": "1121e5cf044ecab7202695174c74cfa89a18b6a0"
|
||||
},
|
||||
"ini": {
|
||||
"revision": "87176e524f0a98f5be75fa44f4f0ff5c6eac069c"
|
||||
|
|
|
|||
|
|
@ -49,6 +49,27 @@
|
|||
"finder"
|
||||
] @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"
|
||||
"case"
|
||||
|
|
@ -132,11 +153,43 @@
|
|||
(annotation_appl
|
||||
"@" @attribute)
|
||||
|
||||
(annotation_appl
|
||||
(annotation_appl_custom_body
|
||||
(scoped_name) @attribute)
|
||||
|
||||
(annotation_appl
|
||||
(annotation_built_name) @attribute.builtin)
|
||||
(annotation_appl_builtin_body
|
||||
(_
|
||||
[
|
||||
"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
|
||||
(identifier) @function.method)
|
||||
|
|
@ -339,3 +392,11 @@
|
|||
|
||||
(element_spec
|
||||
(declarator) @variable.member)
|
||||
|
||||
(preproc_include
|
||||
(keyword_include) @type
|
||||
path: (_) @string)
|
||||
|
||||
(system_lib_string
|
||||
"<" @string
|
||||
">" @string)
|
||||
|
|
|
|||
|
|
@ -4,4 +4,7 @@
|
|||
|
||||
(definition) @indent.begin
|
||||
|
||||
(predefine) @indent.ignore
|
||||
[
|
||||
(preproc_define)
|
||||
(preproc_include)
|
||||
] @indent.ignore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue