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

eruby with comments 3 orders of magnitude slower #241

Open
9mm opened this issue Aug 17, 2023 · 0 comments
Open

eruby with comments 3 orders of magnitude slower #241

9mm opened this issue Aug 17, 2023 · 0 comments

Comments

@9mm
Copy link

9mm commented Aug 17, 2023

If I open a ~100 line html file with embedded ruby (setf eruby)...

If this file contains a # comment within ERB tags somewhere in the file, it creates 2 problems:

  1. Neovim slows down by at least 100-1000x. It's so bad theres like a 200ms delay typing a single letter. If you try to use j/k to scroll it's extremely choppy like you're editing a 2 million line file.

  2. The comments are just wrong. A comment must end at the %> of the embedded ruby tag, but they keep going to all embedded ruby contained within the entire file. Here's a screenshot showing an example, notice the this should not be commented is not preceded by a #, and it's still commented from the few lines above

image
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

No branches or pull requests

1 participant