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

Explicitly define how indentation is handled, and implement this #231

Open
fingolfin opened this issue Sep 4, 2019 · 0 comments
Open

Explicitly define how indentation is handled, and implement this #231

fingolfin opened this issue Sep 4, 2019 · 0 comments

Comments

@fingolfin
Copy link
Member

This comes from discussion on PR #230

For the formatting rule, let's imitate GAPDoc: After finding a @BeginCode, we record whatever came before it on the line as a PREFIX. Then in all subsequent lines, we take the maximal common prefix of that line, and the recorded PREFIX, and remove that from the line we just read, and store/process the rest of the line; we repeat this until we encounter the matching @EndCode.

This should take care of weird indentation quirks. Of course this should be documented, and also applied to other similar constructs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant