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

Syntax Highlighting Errors #72

Closed
ZaheenJ opened this issue Nov 25, 2023 · 1 comment
Closed

Syntax Highlighting Errors #72

ZaheenJ opened this issue Nov 25, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ZaheenJ
Copy link

ZaheenJ commented Nov 25, 2023

While playing around with typst, I noticed a few inconsistencies compared to typst.app (and I think typst.app is correct).
Here is typst.app:
image
Here is neovim with typst.vim:
image

What immediately caught my attention was that quad was not highlighted differently in the math block which makes my brain think that it should be rendered as quad when of course it is just spacing. Then while taking the screenshots to make this issue, I noticed another issue (sorry for not creating separate issues but these seem relatively small). In the inline math expression, why are two of the three 'F's highlighted purple? Moreover, why would only the second and third be highlighted but not the first?

@kaarmu
Copy link
Owner

kaarmu commented Nov 27, 2023

Hi, thank you for reporting the issue(s). Currently, I have to consider concealed math-blocks as an experimental feature due to the extensive problems discussed in #64. All I can say for now is yes, what you've reported are bugs. However, I will not look into this until #64 is fixed. (Although, if you get the same problems with concealment turned off then I can perhaps there is an easy fix.)

Small explanation about the 'F's is that the concealed F (i.e. the first one) uses another syntax rule and therefore gets another color.

@kaarmu kaarmu added the bug Something isn't working label Nov 27, 2023
@kaarmu kaarmu closed this as completed in dbed3a3 Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants