Skip to content

Commit 0ac9fe2

Browse files
committed
tools/preproc.pl: Support any regex delimiter
1 parent dfd2f60 commit 0ac9fe2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

preproc.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
}
2929
}
3030

31-
if ($line =~ /^"\s*$preproc(\w+)$preproc\s+(?:"(.+)"|'(.*)')\s*$/) {
32-
my ($name, $content) = ($1, $2);
31+
if ($line =~ /^"\s*$preproc(\w+)$preproc\s+(?:(.)(.+)\2)\s*$/) {
32+
my ($name, $content) = ($1, $3);
3333
$content =~ s/$preproc(\w+)$preproc/
3434
die "Replacement for $preproc$1$preproc not found at line $.\n" if !$replacements{$1};
3535
$replacements{$1}

0 commit comments

Comments
 (0)