styled-components / vim-styled-components

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

Inconsistent Styled Handling in .tsx Files #65

Open TomPridham opened 5 years ago

TomPridham commented 5 years ago

this plugin supports both the styled.div and styled('div') syntax in .js files, but it appears that only the latter is supported in .tsx files Screen Shot 2019-06-25 at 1 00 16 PM Screen Shot 2019-06-25 at 12 59 38 PM

fleischie commented 5 years ago

Hello @TomPridham

thanks for taking your time to post this issue, but I don't really understand what the issue is?

TomPridham commented 5 years ago

in tsx files, styled(Thing) gets the same highlighting as in a js file, but styled.div gets standard string highlighting. both styles work correctly in normal js files.

Screen Shot 2019-07-15 at 12 54 30 PM
fleischie commented 5 years ago

Hey @TomPridham,

firstly sorry for not responding in all this time, secondly I am not able to reproduce your reported behavior. screen-1

If you continue to observe this behavior provide a vimrc and ideally a file with a minimum working example, so I can more easily help you. :smile:

TomPridham commented 5 years ago

no worries. i appreciate the work you've done on this plugin. i'll try and work up an example this weekend