fix id para incluir dashes
This commit is contained in:
parent
c66bd1cace
commit
7c39331fe5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue