hy
hy copied to clipboard
Pygments Hy lexer needs improvements
See #1522, all remaining syntax highlighting problems seem to be deficiencies in their lexer.
Issues:
-
[ ] Hy doesn't lex unicode literals: Issue 1422
-
[ ] Hy lexer should accept colons inside identifier: PR 754
Digging into this a bit more, looks like the hylang pyments lexer has specific problems with lexing symbols with colons in the middle of them (trailing or embedded). These are both legal identifiers and valid for Python output, so easy patch to the lexer.
After that's done, there's still the issue of unicode literals, which I don't know how to fix.
updated link for the first issue: https://github.com/pygments/pygments/issues/1126
This kind of thing should be tracked on pygments/pygments, not here, and we already have an issue there.