aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBranch Vincent2023-06-24 13:27:49 +0000
committerGitHub2023-06-24 13:27:49 +0000
commit6c6923c39eae8b176d4deb7779ab19dcebb326ea (patch)
tree0b2353b140d83e5ce7497fee674b956c29339ce9 /runtime
parent08c0a23b7915d4d4b5b30e6cd120fc638b5b6155 (diff)
feat(toml): highlight table headers (#7441)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/toml/highlights.scm17
1 files changed, 15 insertions, 2 deletions
diff --git a/runtime/queries/toml/highlights.scm b/runtime/queries/toml/highlights.scm
index 3c4425f8..e0a3d6a1 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
;---------