marsadm: fix parsing of backslash-terminated lines

Suggested-by: dhrmn <notifications@github.com>
This commit is contained in:
Thomas Schoebel-Theuer 2020-11-06 12:03:40 +01:00
parent 70a4aae762
commit 18319eed23
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ sub call_hook {
# syntactic scanning / parsing # syntactic scanning / parsing
my $match_comment = qr'#[^\n]*|//\h[^\n]*|/\*(?:[^*]|\*[^/])*\*/'; my $match_comment = qr'#[^\n]*|//\h[^\n]*|/\*(?:[^*]|\*[^/])*\*/|\\\n\s*';
my $match_nobrace = qr'(?:[^{}\\]|\\.)*'s; my $match_nobrace = qr'(?:[^{}\\]|\\.)*'s;
my $match_inner = $match_nobrace; my $match_inner = $match_nobrace;
my $match_brace = qr"\{$match_inner\}"s; my $match_brace = qr"\{$match_inner\}"s;