summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--queries/toml/highlights.scm33
1 files changed, 28 insertions, 5 deletions
diff --git a/queries/toml/highlights.scm b/queries/toml/highlights.scm
index 10b93705..17c83d54 100644
--- a/queries/toml/highlights.scm
+++ b/queries/toml/highlights.scm
@@ -1,12 +1,35 @@
-(bare_key) @type.builtin
+; Properties
+;-----------
-(pair
- (bare_key) @property)
+(bare_key) @property
+(quoted_key) @string
+; Literals
+;---------
+
+(boolean) @boolean
+(comment) @comment
(string) @string
-(boolean) @constant.builtin
(integer) @number
(float) @float
-(comment) @comment
+(offset_date_time) @string.special
+(local_date_time) @string.special
+(local_date) @string.special
+(local_time) @string.special
+
+; Punctuation
+;------------
+
+"." @punctuation.delimiter
+"," @punctuation.delimiter
+
+"=" @operator
+
+"[" @punctuation.bracket
+"]" @punctuation.bracket
+"[[" @punctuation.bracket
+"]]" @punctuation.bracket
+"{" @punctuation.bracket
+"}" @punctuation.bracket
(ERROR) @error