Skip to content

Added positional offsets to each YangStatement#3

Open
declspec wants to merge 1 commit intollhotka:masterfrom
declspec:master
Open

Added positional offsets to each YangStatement#3
declspec wants to merge 1 commit intollhotka:masterfrom
declspec:master

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