Myriad-Dreamin / tinymist

Tinymist [ˈtaɪni mɪst] is an integrated language service for Typst [taɪpst].
https://myriad-dreamin.github.io/tinymist
Apache License 2.0
544 stars 27 forks source link

Inline code followed by double quote causes incorrect syntax highlighting #556

Closed MDLC01 closed 1 month ago

MDLC01 commented 1 month ago

Describe the bug

Tinymist highlights the following piece of code incorrectly, coloring "foo\n" as if it were a code-mode string and bar as a code-mode identifier.

#ident"foo
"bar

Package/Software version:

tinymist extension version: v0.11.1. Get it by tinymist --version in terminal.

tinymist 
Build Timestamp:     2024-05-18T05:16:29.224809100Z
Build Git Describe:  v0.11.9-dirty
Commit SHA:          49c665de6631bc6f989f8289650efcbf116359ab
Commit Date:         None
Commit Branch:       None
Cargo Target Triple: x86_64-pc-windows-msvc
Typst Version:       0.11.1
Myriad-Dreamin commented 1 month ago

As a workaround:

#let a = 1;
#a;""