mirror of https://github.com/schoebel/mars
marsadm: fix parsing of backslash-terminated lines
Suggested-by: dhrmn <notifications@github.com>
This commit is contained in:
parent
70a4aae762
commit
18319eed23
|
@ -436,7 +436,7 @@ sub call_hook {
|
|||
|
||||
# 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_inner = $match_nobrace;
|
||||
my $match_brace = qr"\{$match_inner\}"s;
|
||||
|
|
Loading…
Reference in New Issue