parent
e51eef3ae7
commit
55cad2deec
2
lex.py
2
lex.py
|
@ -205,7 +205,7 @@ class LazyPatternRule(Rule):
|
||||||
def __init__(self, name, pattern):
|
def __init__(self, name, pattern):
|
||||||
Rule.__init__(self, name)
|
Rule.__init__(self, name)
|
||||||
self.pattern = pattern
|
self.pattern = pattern
|
||||||
self.d = {}
|
self._compile({})
|
||||||
def _compile(self, d):
|
def _compile(self, d):
|
||||||
try:
|
try:
|
||||||
self.re = re.compile(self.pattern % d, self.reflags)
|
self.re = re.compile(self.pattern % d, self.reflags)
|
||||||
|
|
Loading…
Reference in New Issue