aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/meson/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/meson/highlights.scm')
-rw-r--r--runtime/queries/meson/highlights.scm62
1 files changed, 62 insertions, 0 deletions
diff --git a/runtime/queries/meson/highlights.scm b/runtime/queries/meson/highlights.scm
new file mode 100644
index 00000000..01df8f27
--- /dev/null
+++ b/runtime/queries/meson/highlights.scm
@@ -0,0 +1,62 @@
+(string_literal) @string
+
+(boolean_literal) @constant.builtin.boolean
+(integer_literal) @constant.numeric.integer
+
+(comment) @comment.line
+(function_id) @function
+(keyword_arg_key) @variable.other.member
+(id_expression) @variable
+
+[
+ "if"
+ "elif"
+ "else"
+ "endif"
+] @keyword.control.conditional
+
+[
+ "foreach"
+ "endforeach"
+] @keyword.control.repeat
+
+[
+ "break"
+ "continue"
+] @keyword.control
+
+[
+ "not"
+ "in"
+ "and"
+ "or"
+] @keyword.operator
+
+[
+ "!"
+ "+"
+ "-"
+ "*"
+ "/"
+ "%"
+ "=="
+ "!="
+ ">"
+ "<"
+ ">="
+ "<="
+] @operator
+
+[
+ ":"
+ ","
+] @punctuation.delimiter
+
+[
+ "("
+ ")"
+ "["
+ "]"
+ "{"
+ "}"
+] @punctuation.bracket