vim-styled-components icon indicating copy to clipboard operation
vim-styled-components copied to clipboard

Inconsistent Styled Handling in .tsx Files

Open TomPridham opened this issue 5 years ago • 4 comments

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

TomPridham avatar Jun 25 '19 19:06 TomPridham

Hello @TomPridham

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

fleischie avatar Jul 15 '19 09:07 fleischie

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

TomPridham avatar Jul 15 '19 18:07 TomPridham

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:

fleischie avatar Aug 01 '19 16:08 fleischie

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

TomPridham avatar Aug 01 '19 18:08 TomPridham