summaryrefslogtreecommitdiff
path: root/queries/meson/highlights.scm
diff options
context:
space:
mode:
authorShootingStarDragons <ShootingStarDragons@protonmail.com>2022-08-23 18:52:45 +0800
committerStephan Seitz <stephan.seitz@fau.de>2022-08-26 11:55:16 -0700
commitd4ca2c679104a598f9cc0cb2a1f47de04bfa1ad9 (patch)
tree057ff76641f94e4fe5e55503203ce147d5d095a2 /queries/meson/highlights.scm
parent08e9b7cdf79b4ac4fcb1d26ad8ed37241f968754 (diff)
feat(meson): add support for meson
Log: meson build
Diffstat (limited to 'queries/meson/highlights.scm')
-rw-r--r--queries/meson/highlights.scm72
1 files changed, 72 insertions, 0 deletions
diff --git a/queries/meson/highlights.scm b/queries/meson/highlights.scm
new file mode 100644
index 00000000..4f842b45
--- /dev/null
+++ b/queries/meson/highlights.scm
@@ -0,0 +1,72 @@
+(comment) @comment
+(number) @number
+(bool) @boolean
+
+[
+ "("
+ ")"
+ "{"
+ "}"
+ "["
+ "]"
+]
+@punctuation.bracket
+
+[
+ "and"
+ "not"
+ "or"
+ "in"
+] @keyword.operator
+
+[
+ "="
+ "=="
+ "!="
+ "+"
+ "/"
+ "/="
+ "+="
+ "-="
+ ">"
+ ">="
+] @operator
+
+[
+ "if"
+ "elif"
+ "else"
+ "endif"
+] @conditional
+
+[
+ "foreach"
+ "endforeach"
+ (keyword_break)
+ (keyword_continue)
+] @repeat
+
+;;; format
+(string) @string
+["@"] @punctuation.special
+
+(experession_statement
+ object: (identifier) @variable)
+
+(normal_command
+ command: (identifier) @function)
+
+(list
+ variable: (identifier) @variable)
+
+(formatunit
+ variable: (identifier) @variable)
+
+(variableunit
+ value: (identifier) @variable)
+(pair
+ key: (identifier) @property)
+(pair
+ value: (identifier) @variable)
+
+(escape_sequence) @string.escape