summaryrefslogtreecommitdiff
path: root/runtime/queries/jsonnet/highlights.scm
diff options
context:
space:
mode:
authorMatouš Dzivjak2022-09-08 14:04:18 +0000
committerGitHub2022-09-08 14:04:18 +0000
commit5ab85283e944b9b0409c70953c7655b9c5f84067 (patch)
treee87d49c1a51e866b5b607bfd2fff8e32ac0f184c /runtime/queries/jsonnet/highlights.scm
parent16ce036bdf3a7899d14d62bc46bbc9a8b5fa99e3 (diff)
feat(languages): jsonnet (#3714)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Diffstat (limited to 'runtime/queries/jsonnet/highlights.scm')
-rw-r--r--runtime/queries/jsonnet/highlights.scm38
1 files changed, 38 insertions, 0 deletions
diff --git a/runtime/queries/jsonnet/highlights.scm b/runtime/queries/jsonnet/highlights.scm
new file mode 100644
index 00000000..f54e7d5c
--- /dev/null
+++ b/runtime/queries/jsonnet/highlights.scm
@@ -0,0 +1,38 @@
+["if" "then" "else"] @keyword.control.conditional
+[
+ (local)
+ "function"
+] @keyword
+(comment) @comment
+
+(string) @string
+(number) @constant.numeric
+[
+ (true)
+ (false)
+] @constant.builtin.boolean
+
+(binaryop) @operator
+(unaryop) @operator
+
+(param identifier: (id) @variable.parameter)
+(bind function: (id) @function)
+(fieldname (id) @variable.other.member)
+[
+ "["
+ "]"
+ "{"
+ "}"
+] @punctuation.bracket
+"for" @keyword.control.repeat
+"in" @keyword.operator
+[(self) (dollar)] @variable.builtin
+"assert" @keyword
+(null) @constant.builtin
+[
+ ":"
+ "::"
+ ";"
+ "="
+] @punctuation.delimiter
+(id) @variable