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

Crystal HEREDOCs Cause Freezing #7092

Closed
dylhack opened this issue Apr 3, 2024 · 1 comment
Closed

Crystal HEREDOCs Cause Freezing #7092

dylhack opened this issue Apr 3, 2024 · 1 comment

Comments

@dylhack
Copy link

dylhack commented Apr 3, 2024

HEREDOCs in crystal causes JavaScript to hang.

Reproducing

  1. Go-to https://codemirror.net/5/mode/crystal/index.html where Crystal is demoed.
  2. Type <<-'HERE' followed by any character.
  3. See infinite loop
@marijnh marijnh closed this as completed in b7b1bbc Apr 3, 2024
@marijnh
Copy link
Member

marijnh commented Apr 3, 2024

Attached patch should fix this.

marijnh added a commit to codemirror/legacy-modes that referenced this issue Apr 3, 2024
FIX: Fix an infinite loop when tokenizing heredoc strings in the Crystal mode.

Closes codemirror/codemirror5#7092
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

2 participants