LumaKernel / vim-jsx-pretty

https://github.com/LumaKernel/vim-jsx-pretty/issues/1
MIT License
0 stars 1 forks source link

[Memo] Why did I make this patch. #1

Open LumaKernel opened 4 years ago

LumaKernel commented 4 years ago

diff https://github.com/MaxMEllon/vim-jsx-pretty/compare/master...LumaKernel:master

This is a fix for combination with lexima.vim.

export function foo () {/* cursor is here and hit enter */}

error log ( with my plugin messages-qf.vim )

|| Error detected while processing function
/home/luma/.cache/dein/.cache/init.vim/.dein/autoload/lexima/insmode.vim|126| lexima#insmode#_map_impl..
/home/luma/.cache/dein/.cache/init.vim/.dein/autoload/lexima/insmode.vim|183| <SNR>357_map_impl..
/home/luma/.cache/dein/.cache/init.vim/.dein/autoload/lexima/insmode.vim|289| <SNR>357_input..
/home/luma/.cache/dein/.cache/init.vim/.dein/after/indent/javascript.vim|25| GetJsxIndent..
/home/luma/.cache/dein/.cache/init.vim/.dein/autoload/jsx_pretty/indent.vim|252| jsx_pretty#indent#get..
/home/luma/.cache/dein/.cache/init.vim/.dein/autoload/jsx_pretty/indent.vim|194| <SNR>364_syntax_context:
/home/luma/.cache/dein/.cache/init.vim/.dein/autoload/jsx_pretty/indent.vim|197| E15: Invalid expression: syntax_stack[-1]
LumaKernel commented 4 years ago

Little difficult for me to determine where and what should I issue about this problem.