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 characters (Greek letters) in identifiers are handled incorrectly #5

Open
Socob opened this issue May 21, 2018 · 1 comment

Comments

@Socob
Copy link

Socob commented May 21, 2018

As far as I can tell, Unicode characters such as Greek letters are treated just like ordinary Latin letters by Mathematica. For example, a file test.m like

varλ1a = 111;
Print[varλ1a^2];

simply prints 12321. However, running pygmentize -l mathematica test.m underlines and colors the λ and also colors the 1 in the variable name varλ1a. As you can see above, the syntax highlighting here on GitHub has the same issue.

This seems wrong to me – in the example, varλ1a is simply a variable holding the value 111. As such, the whole name should be highlighted consistently as a variable name.

@romanschmied
Copy link

romanschmied commented Apr 26, 2019

Also, even though Δx is colored uniformly in blue, the pattern Δx_ is split: the Δ is shown in blue and the x_ is shown in green-italic (using minted + pdftex).

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