#1491: Updated parsing to avoid misidentifying range attributes as range keywords.
This commit is contained in:
parent
070699cea8
commit
5d03cc8b37
|
|
@ -47,6 +47,11 @@ def classify_until(lUntils, iToken, lObjects):
|
|||
elif iOpenParenthesis == iCloseParenthesis:
|
||||
if lObjects[iCurrent].get_lower_value() in lUntils:
|
||||
break
|
||||
elif utils.is_next_token("'", iToken, lObjects):
|
||||
# Ensure that range attributes are not misidentified as range keywords.
|
||||
utils.assign_token(lObjects, iCurrent, parser.todo)
|
||||
iCurrent = utils.find_next_token(iCurrent, lObjects)
|
||||
utils.assign_token(lObjects, iCurrent, parser.todo)
|
||||
elif utils.is_next_token("range", iToken, lObjects):
|
||||
utils.assign_token(lObjects, iCurrent, range_constraint.range_keyword)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue