add highlights and try filetype

This commit is contained in:
Preston Baxter 2024-01-23 21:59:32 -06:00
parent cf8f7666c6
commit befb9b505a
2 changed files with 59 additions and 0 deletions

59
quieries/highlight.scm Normal file
View File

@ -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