cespare / vim-toml

Vim syntax for TOML
MIT License
625 stars 40 forks source link

Recognize inline tables #13

Open cespare opened 9 years ago

cespare commented 9 years ago

https://github.com/toml-lang/toml#inline-table

mbyio commented 8 years ago

They seem to work fine for me. Did you want different syntax highlighting for the table name or something like that?

cespare commented 5 years ago

Yeah, it mostly works. Ideally we'd match all the various bits of syntax:

cespare commented 5 years ago

(For instance the analogous elements in JSON are all recognized.)

dbluhm commented 5 years ago

I've noticed this a few times with Rust's Cargo.toml files:

Screenshot from 2019-03-19 22-10-21

Something about the strings and lists seems to get it.

cespare commented 5 years ago

@dbluhm I believe that recent changes (including #47) have improved the situation. Here's your example now using everyone's favorite colorscheme, elflord:

screen_20190828092142

So I think we're back to just missing the minor tidbits I mentioned in https://github.com/cespare/vim-toml/issues/13#issuecomment-442219880.