From 980b025886bb52c151cd8954c7547fd94be35c73 Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Sat, 28 Oct 2023 07:43:00 +0100 Subject: [PATCH] update toml queries --- lapce-core/queries/toml/highlights.scm | 27 ++++++-------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/lapce-core/queries/toml/highlights.scm b/lapce-core/queries/toml/highlights.scm index e0a3d6a1..ca2f0c74 100644 --- a/lapce-core/queries/toml/highlights.scm +++ b/lapce-core/queries/toml/highlights.scm @@ -1,32 +1,17 @@ ; Properties ;----------- -(table [ - (bare_key) - (dotted_key) - (quoted_key) -] @type) - -(table_array_element [ - (bare_key) - (dotted_key) - (quoted_key) -] @type) - -(pair [ - (bare_key) - (dotted_key) - (quoted_key) -] @variable.other.member) +(bare_key) @property +(quoted_key) @string ; Literals ;--------- -(boolean) @constant.builtin.boolean +(boolean) @constant.builtin (comment) @comment (string) @string -(integer) @constant.numeric.integer -(float) @constant.numeric.float +(integer) @number +(float) @number (offset_date_time) @string.special (local_date_time) @string.special (local_date) @string.special @@ -45,4 +30,4 @@ "[[" @punctuation.bracket "]]" @punctuation.bracket "{" @punctuation.bracket -"}" @punctuation.bracket +"}" @punctuation.bracket \ No newline at end of file