Skip to content

Commit

Permalink
feat(toml): highlight table headers (helix-editor#7441)
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent authored and mtoohey31 committed Jun 2, 2024
1 parent 78ea34e commit f0f5608
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions runtime/queries/toml/highlights.scm
Original file line number Diff line number Diff line change
@@ -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
;---------
Expand Down

0 comments on commit f0f5608

Please sign in to comment.