diff --git a/quieries/highlight.scm b/quieries/highlight.scm new file mode 100644 index 0000000..9d8a424 --- /dev/null +++ b/quieries/highlight.scm @@ -0,0 +1,59 @@ +; Keywords + +[ + "input" + "output" + "filter" +] @keyword + +((identifier) @keyword + (#match? @keyword "^(private|protected|public)$")) + +; Literals + +[ + (string) + (bareword) +] @string + +(regex) @string.special.regex +(escape_sequence) @escape + +[ + (number) +] @number + +[ + (nil) + (true) + (false) +]@constant.builtin + +(interpolation + "%{" @punctuation.special + "}" @punctuation.special) @embedded + +(comment) @comment + +; Operators + +[ +"=" +"=>" +"->" +] @operator + +[ + "," + ";" + "." +] @punctuation.delimiter + +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket diff --git a/tests/test.conf b/tests/test.ls similarity index 100% rename from tests/test.conf rename to tests/test.ls