feat(idl): update idl parser and queries (#6854)

This commit is contained in:
DragonBillow 2024-07-03 18:00:51 +08:00 committed by GitHub
parent 7adae51ff3
commit fe5c581ed5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 69 additions and 5 deletions

View file

@ -318,7 +318,7 @@
"revision": "6858695eba0e63b9e0fceef081d291eb352abce8"
},
"idl": {
"revision": "966797b8c581526efdd2252f815dde6de1a8f932"
"revision": "1121e5cf044ecab7202695174c74cfa89a18b6a0"
},
"ini": {
"revision": "87176e524f0a98f5be75fa44f4f0ff5c6eac069c"

View file

@ -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)

View file

@ -4,4 +4,7 @@
(definition) @indent.begin
(predefine) @indent.ignore
[
(preproc_define)
(preproc_include)
] @indent.ignore