From c6e31dc6da900c4716044d5f332f43d3ea0bc78b Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Sat, 2 Feb 2019 16:36:57 +0100 Subject: [PATCH] marsadm: C++ comments must be followed by whitespace They can interfere with http://myserver.org syntax. --- userspace/marsadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/marsadm b/userspace/marsadm index 6683aa81..99cbbdb1 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -211,7 +211,7 @@ sub rsync_cmd { # 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_inner = $match_nobrace; my $match_brace = qr"\{$match_inner\}"s;