styled-components / vim-styled-components

Vim bundle for http://styled-components.com based javascript files.
300 stars 24 forks source link

Manually fix cssAttrRegion #18

Closed fleischie closed 7 years ago

fleischie commented 7 years ago

Properties, that can be attributes as well (e.g. color, border, etc.) are highlighted incorrectly as an attribute.

cssAttrRegion breaks pseudo-elements/-selectors though.

So I suggest to fix this manually, by re-defining a cssAttrRegion, that is more robust for our use-case.

fleischie commented 7 years ago

Another idea I just had: Copy the way thysultan/stylis.js parses css.

fleischie commented 7 years ago

I think I have fixed this issue. Please open a new one, if the problem persists.