diff options
| author | oxalica <oxalicc@pm.me> | 2021-10-04 02:08:19 +0800 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-10-04 12:41:26 +0200 |
| commit | ecd9efd48611c42d7e51b50028788bf2b74b5c91 (patch) | |
| tree | 5972532df1420efcd51b40b7ffeceeaaee795c80 | |
| parent | fc1c31a393a713f7a6fe34a829ac3d5e521de0be (diff) | |
Update toml highlight queries
| -rw-r--r-- | queries/toml/highlights.scm | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/queries/toml/highlights.scm b/queries/toml/highlights.scm index 10b93705..17c83d54 100644 --- a/queries/toml/highlights.scm +++ b/queries/toml/highlights.scm @@ -1,12 +1,35 @@ -(bare_key) @type.builtin +; Properties +;----------- -(pair - (bare_key) @property) +(bare_key) @property +(quoted_key) @string +; Literals +;--------- + +(boolean) @boolean +(comment) @comment (string) @string -(boolean) @constant.builtin (integer) @number (float) @float -(comment) @comment +(offset_date_time) @string.special +(local_date_time) @string.special +(local_date) @string.special +(local_time) @string.special + +; Punctuation +;------------ + +"." @punctuation.delimiter +"," @punctuation.delimiter + +"=" @operator + +"[" @punctuation.bracket +"]" @punctuation.bracket +"[[" @punctuation.bracket +"]]" @punctuation.bracket +"{" @punctuation.bracket +"}" @punctuation.bracket (ERROR) @error |
