From efbbb09e1d800985b3f760555e84f208f5deb4bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Dzivjak?= Date: Wed, 7 Sep 2022 09:23:52 +0200 Subject: [PATCH] apply suggestions --- runtime/queries/jsonnet/highlights.scm | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/runtime/queries/jsonnet/highlights.scm b/runtime/queries/jsonnet/highlights.scm index c14857908bdf3..e97f47938d896 100644 --- a/runtime/queries/jsonnet/highlights.scm +++ b/runtime/queries/jsonnet/highlights.scm @@ -1,4 +1,4 @@ -["if" "then" "else"] @keyword.control.conditional +["if" "then" "else"] @conditional [ (local) "function" @@ -6,16 +6,15 @@ (comment) @comment (string) @string -(number) @constant.numeric +(number) @number [ (true) (false) -] @constant.builtin.boolean +] @boolean (binaryop) @operator (unaryop) @operator -(id) @variable (param identifier: (id) @variable.parameter) (bind function: (id) @function) (fieldname) @string.special @@ -25,3 +24,15 @@ "{" "}" ] @punctuation.bracket +"for" @keyword.control.repeat +"in" @keyword.operator +[(self) (dollar)] @variable.builtin +"assert" @keyword +(null) @constant.builtin +[ + ":" + "::" + ";" + "=" +] @punctuation.delimiter +(id) @variable