mirror of https://github.com/schoebel/mars
marsadm: C++ comments must be followed by whitespace
They can interfere with http://myserver.org syntax.
This commit is contained in:
parent
e4e6d9b7a3
commit
c6e31dc6da
|
@ -211,7 +211,7 @@ sub rsync_cmd {
|
||||||
|
|
||||||
# syntactic scanning / parsing
|
# syntactic scanning / parsing
|
||||||
|
|
||||||
my $match_comment = "#[^\n]*\n|//[^\n]*\n|/\\*(?:[^*]|\\*[^/])*\\*/|\\\\\n\\s*";
|
my $match_comment = qr'#[^\n]*|//\h[^\n]*|/\*(?:[^*]|\*[^/])*\*/';
|
||||||
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;
|
||||||
|
|
Loading…
Reference in New Issue