From ecd9efd48611c42d7e51b50028788bf2b74b5c91 Mon Sep 17 00:00:00 2001 From: oxalica Date: Mon, 4 Oct 2021 02:08:19 +0800 Subject: Update toml highlight queries --- queries/toml/highlights.scm | 33 ++++++++++++++++++++++++++++----- 1 file 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 -- cgit v1.2.3