fix string catching multiline
This commit is contained in:
parent
7c39331fe5
commit
b80ab105ec
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ def t_MLSTR(t):
|
|||
|
||||
|
||||
def t_STR(t):
|
||||
r"(\"(?:[^\"\\]|\\.)*\")|(\'[^\']*\')"
|
||||
r"(\"(?:[^\"\\]|\\.)*\")|(\'[^\'\n]*\')"
|
||||
t.value = t.value.strip("\"'")
|
||||
return t
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue