diff options
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/meson/folds.scm | 9 | ||||
| -rw-r--r-- | queries/meson/highlights.scm | 72 |
2 files changed, 81 insertions, 0 deletions
diff --git a/queries/meson/folds.scm b/queries/meson/folds.scm new file mode 100644 index 00000000..bb6c3c87 --- /dev/null +++ b/queries/meson/folds.scm @@ -0,0 +1,9 @@ +[ + (normal_command) + (if_condition) + (if_command) + (else_command) + (elseif_command) + (foreach_command) + (list) +] @fold 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 |
