vim-css-color icon indicating copy to clipboard operation
vim-css-color copied to clipboard

Toml Support

Open mcDevnagh opened this issue 4 years ago • 4 comments

Hello, I would appreciate Toml support. Specifically for strings var = "#FFFFFF" see https://toml.io/en/

mcDevnagh avatar Jul 26 '21 21:07 mcDevnagh

Looks like cespare/vim-toml is the only relevant syntax. (I’ve found a few other projects but they’re all forks of this one.) Is that right or did I miss any alternatives?

Some realistic example file would also be quite useful.

ap avatar Jul 30 '21 11:07 ap

Here are some examples from Amfora https://github.com/makeworld-the-better-one/amfora/blob/master/default-config.toml https://github.com/makeworld-the-better-one/amfora/blob/master/contrib/themes/iceberg.toml

here's the output of my :syntax command

confTodo       xxx contained XXX FIXME TODO
                   links to Todo
confComment    xxx match /^#.*/  contains=confTodo
                   match /\s#.*/ms=s+1  contains=confTodo
                   links to Comment
confString     xxx start=/"/ skip=/\\\\\|\\"/ end=/"/  oneline
                   start=/'/ skip=/\\\\\|\\'/ end=/'/  oneline
                   links to String

vim-toml is much more in depth, and probably a better candidate

mcDevnagh avatar Jul 30 '21 12:07 mcDevnagh

What does :set syn? say when you open a TOML file?

ap avatar Jul 31 '21 15:07 ap

syntax=toml

mcDevnagh avatar Jul 31 '21 15:07 mcDevnagh

This took a lot longer than it should have, but thanks to @IsmailmFahmy submitting #188, it is now supported. If you are still around waiting, well, first of all, sorry, but also, share and enjoy.

ap avatar Jul 26 '23 22:07 ap