wmlxgettext: fix #3469: lua plural strings not recognized in some context (#3481)

* bugfix: https://github.com/wesnoth/wesnoth/issues/3469

* wmlxgettext: removed a debug comment forgotten on the previous bugfix

(cherry-picked from commit 4b79c263d3)
This commit is contained in:
Nobun 2018-08-22 06:10:30 +02:00 committed by Jyrki Vesterinen
parent 79fd02cd0f
commit 90956117ab

View file

@ -77,7 +77,7 @@ class LuaCommentState:
class LuaStr00:
def __init__(self):
self.regex = re.compile(r'((?:_)|(?:.*?\s+_))\s*\(')
self.regex = re.compile(r'\b_\b\s*\(')
self.iffail = 'lua_str01'
def run(self, xline, lineno, match):