hy icon indicating copy to clipboard operation
hy copied to clipboard

Pygments Hy lexer needs improvements

Open vodik opened this issue 6 years ago • 2 comments

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

vodik avatar Mar 24 '18 21:03 vodik

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.

vodik avatar Apr 05 '18 04:04 vodik

updated link for the first issue: https://github.com/pygments/pygments/issues/1126

vidjuheffex avatar Apr 25 '22 19:04 vidjuheffex

This kind of thing should be tracked on pygments/pygments, not here, and we already have an issue there.

Kodiologist avatar Nov 07 '22 17:11 Kodiologist