styled-components / vim-styled-components

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

Indentation for surrounding JS not working. #5

Closed fleischie closed 7 years ago

fleischie commented 7 years ago

The indentation is only of the CSS (primarily blockwise in-/outdent). The potential JS outside of the styled components definition is not indented correctly.

fleischie commented 7 years ago

This should be improved by commit a08f100, which now has a more though-trough process of indenting each line according to it's contents.

It's still not perfectly implemented, as specific edge-cases might be breaking the indentation of css inside of jsTemplateStrings (as well jsTemplateStrings, which mistaken ${} as a css definition, etc.).

fleischie commented 7 years ago

Closing, as this particular issue seems fixed as the previous comment suggest. Open a new issue, if this still occurs. :+1: