mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.2925: Vim9: line continuation comment uses legacy syntax
Problem: Vim9: line continuation comment uses legacy syntax. Solution: Check for #\ instead of "\. (closes #8295)
This commit is contained in:
@@ -1842,7 +1842,8 @@ getsourceline(
|
||||
ga_concat(&ga, p);
|
||||
}
|
||||
}
|
||||
else if (!(p[0] == '"' && p[1] == '\\' && p[2] == ' ')
|
||||
else if (!(p[0] == (in_vim9script() ? '#' : '"')
|
||||
&& p[1] == '\\' && p[2] == ' ')
|
||||
&& !(do_vim9_all && (*p == NUL || vim9_comment_start(p))))
|
||||
break;
|
||||
/* drop a # comment or "\ comment line */
|
||||
|
Reference in New Issue
Block a user