X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=i18n-diff-auditor;h=61d7330f21d03c135355ef157b885e6b08303a71;hp=a32b554d90c53ca70d3dbffd513362e94bdc6e2d;hb=141beff43c4e636ab8ecb5db2a9910dc2301098b;hpb=082759594b008c128c7f66791d9b0845bcb0da33 diff --git a/i18n-diff-auditor b/i18n-diff-auditor index a32b554d..61d7330f 100755 --- a/i18n-diff-auditor +++ b/i18n-diff-auditor @@ -132,7 +132,7 @@ sub semiparse ($) { ( .* \n ) ( (?: (?! $d) .* \n )* ) $d \n - }{ $1 }x or die "missing end of here doc $d\n"; + }{ $1 }xe or die "missing end of here doc $d\n"; $o[$#o]{V} = $2; } elsif (s{^ (["'])( (?: [^\\'"] | \\ [^"'] @@ -275,6 +275,7 @@ sub analyse_chunk_core () { if ($fmt !~ m{\%[^\%]}) { $exactly->($fmt, '(tail)'); $fmt = ''; + die "text deleted from end of string\n" if length $xs; last; } $exactly->($`, '(literal)');