Skip to content

Conversation

@morr
Copy link

@morr morr commented May 3, 2020

@morr morr changed the title add support for proposal-partial-application operator add support for proposal-partial-application May 3, 2020
@morr morr changed the title add support for proposal-partial-application add support for proposal function partial application May 3, 2020
@vieira
Copy link
Contributor

vieira commented May 21, 2021

It seems it would not work for this case?

1 + 1
  |> f(1, ?)

vieira added a commit to vieira/vim-javascript that referenced this pull request May 22, 2021
As defined in tc39/proposal-partial-application, proposed in
pangloss#1205
@vieira
Copy link
Contributor

vieira commented May 22, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants