#1491: Updated parsing to avoid misidentifying range attributes as range keywords.

This commit is contained in:
JHertz5 2025-08-24 21:30:25 +01:00
parent 070699cea8
commit 5d03cc8b37
1 changed files with 5 additions and 0 deletions

View File

@ -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: