From 6c6923c39eae8b176d4deb7779ab19dcebb326ea Mon Sep 17 00:00:00 2001 From: Branch Vincent Date: Sat, 24 Jun 2023 06:27:49 -0700 Subject: [PATCH] feat(toml): highlight table headers (#7441) --- runtime/queries/toml/highlights.scm | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/runtime/queries/toml/highlights.scm b/runtime/queries/toml/highlights.scm index 3c4425f8c..e0a3d6a1b 100644 --- a/runtime/queries/toml/highlights.scm +++ b/runtime/queries/toml/highlights.scm @@ -1,10 +1,23 @@ ; Properties ;----------- -[ +(table [ (bare_key) + (dotted_key) (quoted_key) -] @variable.other.member +] @type) + +(table_array_element [ + (bare_key) + (dotted_key) + (quoted_key) +] @type) + +(pair [ + (bare_key) + (dotted_key) + (quoted_key) +] @variable.other.member) ; Literals ;---------