aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/luap
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/luap')
-rw-r--r--runtime/queries/luap/highlights.scm45
1 files changed, 45 insertions, 0 deletions
diff --git a/runtime/queries/luap/highlights.scm b/runtime/queries/luap/highlights.scm
new file mode 100644
index 000000000..40d2bd37b
--- /dev/null
+++ b/runtime/queries/luap/highlights.scm
@@ -0,0 +1,45 @@
+[
+ (anchor_begin)
+ (anchor_end)
+] @punctuation.delimiter
+
+(pattern
+ (character
+ "." @variable.builtin))
+
+[
+ "["
+ "]"
+ "("
+ ")"
+] @punctuation.bracket
+
+[
+ (zero_or_more)
+ (shortest_zero_or_more)
+ (one_or_more)
+ (zero_or_one)
+] @operator
+
+(range
+ from: (character) @constant
+ "-" @operator
+ to: (character) @constant)
+
+(set
+ (character) @constant)
+
+(negated_set
+ (character) @constant)
+
+(class) @string.escape
+
+(class
+ "%" @string.regexp
+ (escape_char) @string.regexp)
+
+(negated_set
+ "^" @operator)
+
+(balanced_match
+ (character) @variable.parameter)