Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/luap/highlights.scm')
-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 00000000..e01cd226
--- /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) @constant.character.escape
+
+(class
+ "%" @string.regexp
+ (escape_char) @string.regexp)
+
+(negated_set
+ "^" @operator)
+
+(balanced_match
+ (character) @variable.parameter)