fix id para incluir dashes

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

View file

@ -126,7 +126,7 @@ def t_BOOL(t):
def t_ID(t): def t_ID(t):
r"(([\w_]+)|(\"[\w_]+\"|\'[\w_]+\')\s*\.\s*([\w_]+|\"[\w_]+\"|\'[\w_]+\'))(\s*\.\s*([\w_]+|\"[\w_]+\"|\'[\w_]+\'))*" r"(([\w_-]+)|(\"[\w_-]+\"|\'[\w_-]+\')\s*\.\s*([\w_-]+|\"[\w_-]+\"|\'[\w_-]+\'))(\s*\.\s*([\w_-]+|\"[\w_-]+\"|\'[\w_-]+\'))*"
t.value = [s.strip(" \"'") for s in t.value.split('.')] t.value = [s.strip(" \"'") for s in t.value.split('.')]
return t return t