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

Added positional offsets to each YangStatement #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

declspec
Copy link

This allows the parse results to be used in applications like syntax highlighting / code
folding / etc.

I'm not sure if this is something you want in mainline but I figured I'd submit it as a PR anyway.

This solution is obviously very specific to this one use-case, but it'd be really nice to have comparse be more 'result-driven' (i.e. value + start/end range indicators) rather than 'value-driven' so that contextual information (where in the input was the parser applied) isn't lost so easily.

This allows the parse results to be used in applications like syntax highlighting / code
folding / etc.
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