aboutsummaryrefslogtreecommitdiffstats
path: root/queries/bp/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'queries/bp/highlights.scm')
-rw-r--r--queries/bp/highlights.scm55
1 files changed, 55 insertions, 0 deletions
diff --git a/queries/bp/highlights.scm b/queries/bp/highlights.scm
new file mode 100644
index 000000000..d18e6eea0
--- /dev/null
+++ b/queries/bp/highlights.scm
@@ -0,0 +1,55 @@
+(comment) @comment @spell
+
+(operator) @operator
+
+(integer_literal
+ "-" @operator)
+
+[
+ ","
+ ":"
+] @punctuation.delimiter
+
+[
+ "("
+ ")"
+ "["
+ "]"
+ "{"
+ "}"
+] @punctuation.bracket
+
+(boolean_literal) @boolean
+
+(integer_literal) @number
+
+[
+ (raw_string_literal)
+ (interpreted_string_literal)
+] @string
+
+(escape_sequence) @string.escape
+
+(identifier) @variable
+
+(module
+ type: (identifier) @function.call)
+
+(module
+ (property
+ field: (identifier) @variable.parameter))
+
+[
+ (unset)
+ (default)
+] @variable.builtin
+
+(condition
+ name: (identifier) @function.builtin)
+
+(map_expression
+ (property
+ field: (identifier) @property))
+
+(select_expression
+ "select" @keyword.conditional)