Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple multi line support #99

Open
wants to merge 40 commits into
base: main
Choose a base branch
from

Conversation

Uight
Copy link
Contributor

@Uight Uight commented Dec 19, 2024

Just putting it out there. I think this is one of the best solutions to enable basic multilien support for different definitions and comments. Also supports to some extend multiple definitions per line.
I think the only "really" better way would be to switch the parser in its entirety like the milestones/v1.8 branch.

Still think this solution could solve some problems.
Basically this parser uses the nextlineprovider to split lines based on the prefixes for definitions.
it searches for line termiantions ";" or new lines to split definitions.

Basically for what it is its doing a good job. I also fixed some stuff that was criticized when we talked about this in one issue.
The line number when an error occures is now pretty accurate. About the same as the vector candb++ errors which might also be one line off at some points.
Missing ";" are not longer fixed as that is not done by candb++ which failes parsing if a required ; is not present.

Uight added 30 commits August 28, 2024 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant