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

Unicode letters break type name #259

Open
Timeroot opened this issue Jun 17, 2022 · 1 comment
Open

Unicode letters break type name #259

Timeroot opened this issue Jun 17, 2022 · 1 comment
Assignees

Comments

@Timeroot
Copy link

Timeroot commented Jun 17, 2022

When a type has a unicode letter (like Δ) in the name, this "breaks" the name and the hightlight stops before. I'm guessing this is some issue in what letters are viewed as continuations of type names. As an example, you can see this code in Roots.jl:

https://github.com/JuliaMath/Roots.jl/blob/master/src/Derivative/halley_like.jl#L131

struct ChebyshevLike <: AbstractΔMethod end

which highlights as

image

@pfitzseb pfitzseb added the bug label Jun 20, 2022
@pfitzseb pfitzseb self-assigned this Jun 20, 2022
pfitzseb added a commit that referenced this issue Jun 20, 2022
@pfitzseb
Copy link
Collaborator

This seems like a bug in the GH highlighter, specifically. Your examples is highlighted correctly in both VS Code and Atom (I've also added a test for that in #260).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants