wmlxgettext: Accept single-quoted textdomains in Lua

This commit is contained in:
Celtic Minstrel 2016-03-06 17:05:20 -05:00
parent 72b01c813a
commit 5bd0466069

View file

@ -228,11 +228,11 @@ sub read_lua_file {
next LINE if m/^\s*--/ and not defined $str and not m/--\s*wmlxgettext/;
# change the textdomain
if (m/textdomain\s*\(?\s*"([^"]+)"(.*)/) {
$curdomain = $1;
if (m/textdomain\s*\(?\s*(["'])([^"]+)\g1(.*)/) {
$curdomain = $2;
# process rest of the line
$_ = $2 . "\n";
$_ = $3 . "\n";
redo LINE;
}