styled-components / vim-styled-components

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

Only extend syntax/indentation if styled-components are available #10

Closed fleischie closed 7 years ago

fleischie commented 7 years ago

Check, whether it is possible, whether the syntax-highlighting/indentation can only be done, if there is a import * from "styled-components"; present.

I currently had an issue with:

  test(`delegate retrieveToken to token's function`), () => {
  });

without styled components, that got a broken indentation after the token's single quote.