aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/toml/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/toml/highlights.scm')
-rw-r--r--runtime/queries/toml/highlights.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/runtime/queries/toml/highlights.scm b/runtime/queries/toml/highlights.scm
new file mode 100644
index 000000000..f4eaf3f77
--- /dev/null
+++ b/runtime/queries/toml/highlights.scm
@@ -0,0 +1,39 @@
+(bare_key) @property
+
+[
+ (string)
+ (quoted_key)
+] @string
+
+(boolean) @boolean
+
+(comment) @comment @spell
+
+(escape_sequence) @string.escape
+
+(integer) @number
+
+(float) @number.float
+
+[
+ (local_date)
+ (local_date_time)
+ (local_time)
+ (offset_date_time)
+] @string.special
+
+"=" @operator
+
+[
+ "."
+ ","
+] @punctuation.delimiter
+
+[
+ "["
+ "]"
+ "[["
+ "]]"
+ "{"
+ "}"
+] @punctuation.bracket