rsmenon / pygments-mathematica

Mathematica/Wolfram Language lexer and highlighter for Pygments
MIT License
59 stars 8 forks source link

Degree is letter-like and not an operator #13

Open rocky opened 3 years ago

rocky commented 3 years ago

[Degree] is letter-like, not an operator,

Therefore, when we write 360° that is analogous to 2π (pun intended) it this interpreted as: 360 times "degree", and analogous to: 2 times "pi".

Note also that writing: [Degree] == Degree is valid, and this would not be the case if this symbol were not letterlike.

rsmenon commented 3 years ago

You're right, it should be a symbol, not an operator. I will batch this change along with a few others.