-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support vimscript null coalescing operator (aka falsy operator) #23033
Comments
If you are ok to update the parser I can try to devise a patch of https://github.com/neovim/neovim/blob/master/src/nvim/viml/parser/expressions.c |
https://github.com/neovim/neovim/blob/master/src/nvim/viml/parser/expressions.c is not relevant for this. What is needed is porting vim-patch 8.2.1794. |
ok it is needed for |
Sorry in advance if my question sounds dumb: I am not familiar with neovim codeline. |
never mind I just saw https://github.com/neovim/neovim/wiki/Merging-patches-from-upstream-Vim |
The patch has been merged. However it seems that the command line highlighter doesn't currently support any of the following:
|
I think this can be closed as the original request has been resolved. |
Problem
The null coalescing operator is not supported in vimscript.
The expression
:echo ('test' ?? 'default')
returnsE15: Invalid expression: ? 'default')
.Will you be open to amend the vimL parser to support that operator?
Expected behavior
The expression
:echo ('test' ?? 'default')
returns'test'
.The text was updated successfully, but these errors were encountered: