Allow empty strings
This commit is contained in:
@ -216,12 +216,12 @@ def t_tcl_error(t):
|
|||||||
t.lexer.skip(1)
|
t.lexer.skip(1)
|
||||||
|
|
||||||
def t_TEXT_STRING1(t):
|
def t_TEXT_STRING1(t):
|
||||||
r'\'[^\']+\''
|
r'\'[^\']*\''
|
||||||
t.value = t.value[1:-1]
|
t.value = t.value[1:-1]
|
||||||
return t
|
return t
|
||||||
|
|
||||||
def t_TEXT_STRING2(t):
|
def t_TEXT_STRING2(t):
|
||||||
r"\"[^\"]+\""
|
r"\"[^\"]*\""
|
||||||
t.value = t.value[1:-1]
|
t.value = t.value[1:-1]
|
||||||
return t
|
return t
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user