mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.0567: Vim9: cannot put comments halfway expressions
Problem: Vim9: cannot put comments halfway expressions. Solution: Support # comments in many places.
This commit is contained in:
@@ -4764,6 +4764,9 @@ ex_blast(exarg_T *eap)
|
||||
int
|
||||
ends_excmd(int c)
|
||||
{
|
||||
if (c == '#')
|
||||
// TODO: should check for preceding white space
|
||||
return in_vim9script();
|
||||
return (c == NUL || c == '|' || c == '"' || c == '\n');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user