-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
base_parser.py: support conditions checking for empty string (#653)
base_parser.py did not support conditional directives that were comparing to empty strings (e.g. `!if $(MY_VAL) == ""`, `!if $(MY_VAL) != "". The logic in `_TokenizeConditional`, was setting `mode` to QUOTE_MODE twice because the token length was zero for an empty quote (`len(token) == 0`). This PR Updates the logic to not enter QUOTE_MODE when its already in QUOTE_MODE, and to fall over to end of QUOTE_MODE.
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters