tree-sitter-typst
tree-sitter-typst copied to clipboard
Bug causing memory corruption
In Helix editor, when writing any file format that support embedded languages like raw blocks in markdown or typst:
```typst
_
-
```
It causes a segfault when the embedded Typst code contains delimited context like _
or *
with indentation sensitive items like -
or +
.
I don't know if it happens in other editors. It seems to be caused by the external scanner when it calls lexer->get_column()
, but the segfault does not occur during this call, it occurs outside of the scanner.
Could somebody try this on Helix on his machine to know if this is reproducible or not? And also test with another editor, like Neovim or Emacs.