diff options
Diffstat (limited to 'runtime/queries/properties/highlights.scm')
| -rw-r--r-- | runtime/queries/properties/highlights.scm | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/runtime/queries/properties/highlights.scm b/runtime/queries/properties/highlights.scm new file mode 100644 index 000000000..b9390be8c --- /dev/null +++ b/runtime/queries/properties/highlights.scm @@ -0,0 +1,50 @@ +(comment) @comment @spell + +(key) @property + +(value) @string + +(value + (escape) @string.escape) + +((value) @boolean + (#any-of? @boolean "true" "false")) + +((value) @number + (#lua-match? @number "^%d+$")) + +((index) @number + (#lua-match? @number "^%d+$")) + +((substitution + (key) @constant) + (#lua-match? @constant "^[A-Z_][A-Z0-9_]*$")) + +(substitution + (key) @function + "::" @punctuation.special + (secret) @constant.macro) + +(property + [ + "=" + ":" + ] @operator) + +[ + "${" + "}" +] @punctuation.special + +(substitution + ":" @punctuation.special) + +[ + "[" + "]" +] @punctuation.bracket + +[ + "." + "\\" +] @punctuation.delimiter |
