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

Format regions as-is #130

Closed
srhickma opened this issue Apr 24, 2019 · 1 comment
Closed

Format regions as-is #130

srhickma opened this issue Apr 24, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@srhickma
Copy link
Owner

Allow specific regions in the parse tree to be formatted as-is, by copying the exact text from the input string. This is more complicated than simply formatting without patterns, as this requires the entire input section to be tokenized (no ignored tokens). To achieve this, we will need to be able to look up the position of two "bounding" tokens in the input string, so that we can copy the text between them to the output.

@srhickma srhickma added the enhancement New feature or request label Apr 24, 2019
@srhickma srhickma self-assigned this Apr 24, 2019
@srhickma
Copy link
Owner Author

This can be achieved by simply scanning the entire "as-is" region into a single token, including all whitespace, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant