The following code works as expected:
vim9script printf( # comment 'sdfl' )
But this similar code inside a lambda fails:
vim9script const a = () => { printf( # comment 'sdfl' ) }
Error: The comment # comment is not properly ignored when inside a block context, causing a syntax error.
Expected behavior: Comments should be ignored consistently regardless of context.
9.2.0043
MS-Windows
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
diff --git a/src/vim9expr.c b/src/vim9expr.c index ebab9ec13..89219996e 100644 --- a/src/vim9expr.c +++ b/src/vim9expr.c @@ -1392,7 +1392,6 @@ compile_call( else *arg += varlen + 1; - *arg = skipwhite(*arg); if (compile_arguments(arg, cctx, &argcount, special_fn) == FAIL) goto theend;
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()