mxw / vim-jsx

React JSX syntax highlighting and indenting for vim.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syntax broken

francescarpi opened this issue · comments

Hi everyone,

When I use a function directly in jsx, the syntax it broken. I prefer use this syntax for prevent performance mistakes. (https://medium.com/@esamatti/react-js-pure-render-performance-anti-pattern-fb88c101332f#.a304t8dlm)

vimjsx

¿Do you know how can I fix it?

Thanks.

This pugin is very nice, but, I also hit the problem.
So I developed a new syntax plugin.
Please use vim-jsx-pretty if you want.

  • diagram 1
    2016-11-18 1 15 30

  • diagram 2
    2016-11-18 1 20 00

I am doing a respect vim-jsx.

Yeah!

Thanks guy. Your plugin work really fine!

@MaxMEllon what theme do you have on the screenshot? I want it too 😃

@valerybugakov

theme of diagram1 is default and next settings.
https://github.com/MaxMEllon/.vim/blob/master/ftplugin/javascript.vim#L7-L12

diagram2 is tomas/molokai.
(fork version.)

I believe this was fixed some time ago via a separate issue. Closing out.