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

Fix #625 Indentation very slow. #629

Merged
merged 1 commit into from
Nov 25, 2021

Conversation

Matafou
Copy link
Contributor

@Matafou Matafou commented Nov 24, 2021

Had to change the associativity from left to assoc for token
".". This speeds up things by limiting smie token lookups.

I had to change a few indentation rules to restore the correct
behaviour with the new grammar. I had to:

  • use smie-indent-virtual

And as side effects:

  • fix a wrong tests.
  • fix bugs in find-real-start with sequences of "{ subproof" and comments.

Left for another PR: cleaning up dead code in coq-indent.el.

Had to change the associativity from `left` to `assoc` for token
`"."`. This speeds up things by limiting smie token lookups.

I had to change a few indentation rules to restore the correct
behaviour with the new grammar. I had to:

- use `smie-indent-virtual`

And as side effects:

- fix a wrong tests.
- fix bugs in find-real-start with sequences of "{ subproof" and comments.

Left for another PR: cleaning up dead code in coq-indent.el.
@Matafou Matafou merged commit 20412f1 into ProofGeneral:master Nov 25, 2021
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.

None yet

1 participant