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

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

Closed
MDLC01 opened this issue Aug 25, 2024 · 1 comment · Fixed by #559
Closed

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

MDLC01 opened this issue Aug 25, 2024 · 1 comment · Fixed by #559

Comments

@MDLC01
Copy link

MDLC01 commented Aug 25, 2024

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
Copy link
Owner

As a workaround:

#let a = 1;
#a;""

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

Successfully merging a pull request may close this issue.

2 participants