pangloss / vim-javascript

Vastly improved Javascript indentation and syntax support in Vim.
http://www.vim.org/scripts/script.php?script_id=4452
3.8k stars 358 forks source link

add support for proposal function partial application #1205

Open morr opened 4 years ago

morr commented 4 years ago

https://babeljs.io/docs/en/babel-plugin-proposal-partial-application

Before: image

After: image

vieira commented 3 years ago

It seems it would not work for this case?

1 + 1
  |> f(1, ?)
vieira commented 3 years ago

This seems to work for both cases and does not highlight the following , or ) as part of the ?.

syntax match jsFuncArgPartApp contained /\%([(,]\s*\)\@<=?\%(\s*[,)]\)\@=/ containedin=jsFuncArgs