fix string catching multiline

This commit is contained in:
Afonso Franco 2023-05-28 22:57:07 +01:00
parent 7c39331fe5
commit b80ab105ec
Signed by: afonso
SSH key fingerprint: SHA256:JiuxZNdA5bRWXPMUJChI0AQ75yC+cXY4xM0IaVwEVys

View file

@ -138,7 +138,7 @@ def t_MLSTR(t):
def t_STR(t):
r"(\"(?:[^\"\\]|\\.)*\")|(\'[^\']*\')"
r"(\"(?:[^\"\\]|\\.)*\")|(\'[^\'\n]*\')"
t.value = t.value.strip("\"'")
return t