aboutsummaryrefslogtreecommitdiffstats
path: root/queries/toml
diff options
context:
space:
mode:
authoroxalica <oxalicc@pm.me>2021-10-04 02:08:19 +0800
committerStephan Seitz <stephan.seitz@fau.de>2021-10-04 12:41:26 +0200
commitecd9efd48611c42d7e51b50028788bf2b74b5c91 (patch)
tree5972532df1420efcd51b40b7ffeceeaaee795c80 /queries/toml
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-ecd9efd48611c42d7e51b50028788bf2b74b5c91.tar
nvim-treesitter-ecd9efd48611c42d7e51b50028788bf2b74b5c91.tar.gz
nvim-treesitter-ecd9efd48611c42d7e51b50028788bf2b74b5c91.tar.bz2
nvim-treesitter-ecd9efd48611c42d7e51b50028788bf2b74b5c91.tar.lz
nvim-treesitter-ecd9efd48611c42d7e51b50028788bf2b74b5c91.tar.xz
nvim-treesitter-ecd9efd48611c42d7e51b50028788bf2b74b5c91.tar.zst
nvim-treesitter-ecd9efd48611c42d7e51b50028788bf2b74b5c91.zip
Update toml highlight queries
Diffstat (limited to 'queries/toml')
-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 10b937052..17c83d547 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