mirror of
https://github.com/vim/vim.git
synced 2026-04-26 21:45:40 +02:00
Remove `nextgroup=shComment` from the `shEscape` syntax pattern. This was causing `#` characters after escape sequences inside double-quoted strings to be misinterpreted as comments, breaking highlighting for the rest of the file. Add a test case for escaped characters followed by # in double quotes. fixes: #19053 closes: #19414 Signed-off-by: Bozhidar Batsov <bozhidar@batsov.dev> Signed-off-by: Christian Brabandt <cb@256bit.org>
14 lines
366 B
Bash
14 lines
366 B
Bash
#!/bin/bash
|
|
# Issue #19053 (sh syntax: escaped characters followed by # in double quotes)
|
|
|
|
CLEANURL='http://localhost:8077/test'
|
|
|
|
FILENAME=$(sed -r -e "s#[:/]+#\.#g" -e "s#[^a-zA-Z0-9\._]*##g" <<<${CLEANURL})
|
|
FILENAME=$(sed -r -e 's#[:/]+#\.#g' -e 's#[^a-zA-Z0-9\._]*##g' <<<${CLEANURL})
|
|
HDRFILE="${FILENAME}.hdr"
|
|
|
|
: "\\# not a comment"
|
|
# \\" a comment
|
|
echo "\\#"
|
|
:
|