Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/properties/highlights.scm')
| -rw-r--r-- | runtime/queries/properties/highlights.scm | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/runtime/queries/properties/highlights.scm b/runtime/queries/properties/highlights.scm new file mode 100644 index 00000000..d3c6ed79 --- /dev/null +++ b/runtime/queries/properties/highlights.scm @@ -0,0 +1,40 @@ +(comment) @comment + +(key) @attribute + +(value) @string + +(value (escape) @constant.character.escape) + +((index) @constant.numeric.integer + (#match? @constant.numeric.integer "^[0-9]+$")) + +((substitution (key) @constant) + (#match? @constant "^[A-Z0-9_]+")) + +((value) @constant.builtin.boolean + (#any-of? @constant.builtin.boolean "true" "false" "enabled" "disabled")) + +((value) @constant.numeric.integer + (#match? @constant.numeric.integer "^-?[0-9]+$")) + +((value) @constant.numeric.float + (#match? @constant.numeric.float "^-?[0-9]+\.[0-9]$")) + +((value) @string.special.path + (#match? @string.special.path "^(\.{1,2})?/")) + +(substitution + (key) @function + "::" @punctuation.special + (secret) @string.special.symbol) + +(property [ "=" ":" ] @keyword.operator) + +[ "${" "}" ] @punctuation.special + +(substitution ":" @punctuation.special) + +[ "[" "]" ] @punctuation.bracket + +[ "." "\\" ] @punctuation.delimiter |