This bug was reported here to CodeMirror: Crystal HEREDOCs Cause Freezing · Issue #7092 · codemirror/codemirror5 · GitHub
and patched today: Fix an infinite loop in Crystal heredoc tokenizing · codemirror/legacy-modes@9ac2311 · GitHub
Obsidian needs to update their language packages for CodeMirror.
Steps to reproduce
- Open a new note
- Write a code block with the
crystal
language set - Write
<<-'HERE'
followed by any key - It freezes (stuck in infinite loop)
Did you follow the troubleshooting guide?
Yes
Expected result
To not freeze
Actual result
It froze