aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lockfile.json2
-rw-r--r--queries/idl/highlights.scm76
2 files changed, 21 insertions, 57 deletions
diff --git a/lockfile.json b/lockfile.json
index 5466d2a09..c5c4f0f34 100644
--- a/lockfile.json
+++ b/lockfile.json
@@ -324,7 +324,7 @@
"revision": "6858695eba0e63b9e0fceef081d291eb352abce8"
},
"idl": {
- "revision": "3e6c8bbdb5b3485f8a50d951040a6d80c70a97b0"
+ "revision": "e0fb8591d0acbb195d190d644140f821671f0011"
},
"ini": {
"revision": "87176e524f0a98f5be75fa44f4f0ff5c6eac069c"
diff --git a/queries/idl/highlights.scm b/queries/idl/highlights.scm
index 9c51513d9..7446b0d4e 100644
--- a/queries/idl/highlights.scm
+++ b/queries/idl/highlights.scm
@@ -50,27 +50,6 @@
] @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"
@@ -98,6 +77,8 @@
(map_type)
(object_type)
(value_base_type)
+ (wide_string_type)
+ (wide_char_type)
] @type.builtin
(escape_sequence) @string.escape
@@ -115,8 +96,12 @@
(char_literal) @character
+(wide_character_literal) @character
+
(string_literal) @string
+(wide_string_literal) @string
+
[
"("
")"
@@ -161,41 +146,6 @@
(annotation_appl_custom_body
(scoped_name) @attribute)
-(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)
@@ -413,3 +363,17 @@
(extend_annotation_appl
"//@" @attribute.builtin
(annotation_appl_builtin_body))
+
+[
+ (autoid_kind)
+ (extensibility_kind)
+ (verbatim_language)
+ (placement_kind)
+ (service_platform)
+ (try_construct_fail_action)
+ (data_representation_mask)
+] @constant
+
+(anno_name) @attribute.builtin
+
+(range_kind) @attribute.builtin