Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LimeParser: non-greedy parsing of new lines for ceratin constants (#1651
) Certain sub-rules of 'constant' rule used greedy matching of new lines at the end: - 'structInitializer' - 'listInitializer' - 'mapInitializer' If the input LIME file contained invalid syntax after such constant definition, then the parser tried to apply greedy matching. It resulted in meaningless error message e.g.: - `mismatched input '//' expecting NewLine` This change adds the usage of 'Nongreedy Parser Subrules' which prevent the greedy matching and meaningless error messages. Signed-off-by: Patryk Wrobel <[email protected]>
- Loading branch information