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 adds an odd box around lower-case unicode letters #905

Open
RalfJung opened this issue Sep 15, 2024 · 2 comments
Open

Comments

@RalfJung
Copy link

RalfJung commented Sep 15, 2024

I often use unicode letters in my Coq identifers, to better match what we do on paper. This works fine in Coq, but the syntax highlighting of this extension draws a box around some these characters:

image

This makes them look like some sort of error, and also makes them hard to read.

In a plain text file these letters look just right, so it seems to be something specific to what VsCoq does in .v files. This seems to be font-independent; I tried two different monospace fonts and they both show this effect.

@RalfJung RalfJung changed the title Syntac highlighting adds an odd box around lower-case unicode letters Syntax highlighting adds an odd box around lower-case unicode letters Sep 15, 2024
@4ever2
Copy link
Contributor

4ever2 commented Sep 15, 2024

I don't think this is anything specific to VsCoq, it seems to be because of the editor.unicodeHighlight.ambiguousCharacters setting. When enabled it will highlight any ambiguous unicode characters in all non plaintext/markdown files.

@RalfJung
Copy link
Author

Thanks for pointing that out! That helps indeed. :) I have no clue why vscode thinks σ could be confused with another charcacter (but, say, Λ could not)... but now I can at least disabled this behavior.

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

No branches or pull requests

2 participants