Less greedy

This commit is contained in:
Tim Schaub
2013-09-10 18:11:51 -06:00
parent 919e2d39f1
commit 4d71d2b1e8

View File

@@ -300,7 +300,7 @@ def main(argv):
object_literal = ObjectLiteral(name, objects)
objects[name] = object_literal
continue
m = re.match(r'\*\s*@property\s*{(?P<type>.*)}\s*(?P<prop>\S+)', line)
m = re.match(r'\*\s*@property\s*{(?P<type>.*?)}\s*(?P<prop>\S+)', line)
if m:
assert object_literal is not None
prop = m.group('prop')