aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lockfile.json2
-rw-r--r--queries/idl/highlights.scm67
-rw-r--r--queries/idl/indents.scm5
3 files changed, 69 insertions, 5 deletions
diff --git a/lockfile.json b/lockfile.json
index 7dce69528..dadcc1b4a 100644
--- a/lockfile.json
+++ b/lockfile.json
@@ -318,7 +318,7 @@
"revision": "6858695eba0e63b9e0fceef081d291eb352abce8"
},
"idl": {
- "revision": "966797b8c581526efdd2252f815dde6de1a8f932"
+ "revision": "1121e5cf044ecab7202695174c74cfa89a18b6a0"
},
"ini": {
"revision": "87176e524f0a98f5be75fa44f4f0ff5c6eac069c"
diff --git a/queries/idl/highlights.scm b/queries/idl/highlights.scm
index 47ce31b7b..051690836 100644
--- a/queries/idl/highlights.scm
+++ b/queries/idl/highlights.scm
@@ -50,6 +50,27 @@
] @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"
"default"
@@ -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)
diff --git a/queries/idl/indents.scm b/queries/idl/indents.scm
index 5c75c52b5..2256fb701 100644
--- a/queries/idl/indents.scm
+++ b/queries/idl/indents.scm
@@ -4,4 +4,7 @@
(definition) @indent.begin
-(predefine) @indent.ignore
+[
+ (preproc_define)
+ (preproc_include)
+] @indent.ignore