The shEscape pattern had nextgroup=shComment, which caused #
characters appearing after an escape sequence inside double-quoted
strings to be misinterpreted as comment starts. For example:
FILENAME=$(sed -r -e "s#[:/]+#\.#g" -e "s#[^a-zA-Z0-9\._]*##g" <<<${CLEANURL})Here \. matches shEscape, then nextgroup=shComment makes Vim
treat the following #g" as a comment, breaking highlighting for the
rest of the file.
Removing nextgroup=shComment fixes the issue without regressing any
existing syntax tests. A new test case (sh_15) is included.
Closes #19053
https://github.com/vim/vim/pull/19414
(3 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()