wmlxgettext: fix #4275: not handle objectives.lua's turn counter + typefix

(cherry picked from commit e1c7c84957)
(cherry picked from commit 0cf8da9357)
This commit is contained in:
Nobun 2019-09-03 15:25:31 +02:00 committed by Steve Cotton
parent c5213a2886
commit da3c4c0afa
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -54,7 +54,7 @@ def commandline(args):
parser.add_argument(
'--version',
action='version',
version='wmlxgettext 2018.03.10.py3'
version='wmlxgettext 2019.09.03.py3'
)
parser.add_argument(
'-o',