tree-sitter-typst icon indicating copy to clipboard operation
tree-sitter-typst copied to clipboard

Bug causing memory corruption

Open uben0 opened this issue 6 months ago • 4 comments

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.

uben0 avatar Dec 23 '23 15:12 uben0