diff options
author | Branch Vincent | 2023-06-24 13:27:49 +0000 |
---|---|---|
committer | GitHub | 2023-06-24 13:27:49 +0000 |
commit | 6c6923c39eae8b176d4deb7779ab19dcebb326ea (patch) | |
tree | 0b2353b140d83e5ce7497fee674b956c29339ce9 /runtime/queries/toml | |
parent | 08c0a23b7915d4d4b5b30e6cd120fc638b5b6155 (diff) |
feat(toml): highlight table headers (#7441)
Diffstat (limited to 'runtime/queries/toml')
-rw-r--r-- | runtime/queries/toml/highlights.scm | 17 |
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 ;--------- |