diff options
author | 巢鹏 | 2024-02-27 00:41:50 +0000 |
---|---|---|
committer | GitHub | 2024-02-27 00:41:50 +0000 |
commit | 358ac6bc1f512ca7303856dc904d4b4cdc1fe718 (patch) | |
tree | 1ace307facd047fb7ac1de6505368fd14c6c1b95 /runtime/queries/fidl/highlights.scm | |
parent | 1a82aeeae91be33cb0923c9f652fa6db250efd7f (diff) |
add fidl support (#9713)
Diffstat (limited to 'runtime/queries/fidl/highlights.scm')
-rw-r--r-- | runtime/queries/fidl/highlights.scm | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/runtime/queries/fidl/highlights.scm b/runtime/queries/fidl/highlights.scm new file mode 100644 index 00000000..c70d2219 --- /dev/null +++ b/runtime/queries/fidl/highlights.scm @@ -0,0 +1,64 @@ +[ + "ajar" + "alias" + "as" + "bits" + "closed" + "compose" + "const" + "enum" + "error" + "flexible" + "library" + "open" + ; "optional" we did not specify a node for optional yet + "overlay" + "protocol" + "reserved" + "resource" + "service" + "strict" + "struct" + "table" + "type" + "union" + "using" +] @keyword + +(primitives_type) @type.builtin + +(builtin_complex_type) @type.builtin + +(const_declaration + (identifier) @constant) + +[ + "=" + "|" + "&" + "->" +] @operator + +(attribute + "@" @attribute + (identifier) @attribute) + +(string_literal) @string + +(numeric_literal) @constant.numeric + +[ + (true) + (false) +] @constant.builtin.boolean + +(comment) @comment + +[ + "(" + ")" + "<" + ">" + "{" + "}" +] @punctuation.bracket |