scripts/queries/toml.scm

b5aa2aefb2a4844c3369b8024a32c2f81a59bfd1
orgstar/scripts/queries/toml.scm

15 lines · 583 bytes

 1; TOML highlights for Orgstar: table names as types, keys as properties. The grammar's own
 2; query captures whole pairs as properties, which colors values too.
 3(comment) @comment
 4(string) @string
 5(quoted_key) @string
 6[(integer) (float)] @number
 7(boolean) @constant
 8[(offset_date_time) (local_date_time) (local_date) (local_time)] @string.special
 9(table (bare_key) @type)
10(table (dotted_key (bare_key) @type))
11(table_array_element (bare_key) @type)
12(table_array_element (dotted_key (bare_key) @type))
13(pair (bare_key) @property)
14(pair (dotted_key (bare_key) @property))
15"=" @operator
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form