Handle backslashes properly in locate_brackets_of_type

This needs to be rewritten, I'm pretty sure we have like 6 of these
kinds of ad-hoc "is this quoted" things lying around.

But for now, at least don't just check if the *previous* character was
a backslash.

Fixes #7685.
This commit is contained in:
Fabian Homborg
2021-02-05 22:00:31 +01:00
parent c8a91cb067
commit b5305ce3d3
2 changed files with 11 additions and 3 deletions

View File

@@ -484,3 +484,7 @@ echo '-n art'
echo banana
# CHECK: -n art
# CHECK: banana
# This used to be a parse error - #7685.
echo (echo hello\\)
# CHECK: hello\