Re: asciidoctor and pygments not working under cygwin64
Posted by
wolandscat on
Jan 04, 2020; 12:33pm
URL: https://discuss.asciidoctor.org/asciidoctor-and-pygments-not-working-under-cygwin64-tp5212p7470.html
mojavelinux wrote
If something that works on Linux works on cygwin without any issues, then I
expect it to work. That means you should not have start writing lexers
immediately. I'm not really sure what else to tell you, other than check
your environment.
Sure - but it doesn't. This is not an AD problem of course, it's some sort of cygwin weirdness. The fact that it's been reported elsewhere means it's probably real. Probably I just need to accelerate the move of my main machine to Linux and get out of Windows/cygwin for good ;)
mojavelinux wrote
> A better way would be to allow the use of something like Antlr4 files or
some other independent lexer specification file that can be re-used across
any particular implementation - e.g. how gvim does it, and how most parser
builders work.
That's certainly a good idea. I've voiced my opinion in the past about the
lack of portability with grammars for syntax highlighters. But we're not in
the business of making syntax highlighters here, so you'd have direct your
feedback at those projects. Asciidoctor is merely integrating what's out
there.
Agree - I'll try and track down where/how to do that. Nevertheless, I think that if the core AD developer group were to suggest to the Rouge developers a separation of lexer files from the Ruby source code environment into Antlr4 or whatever other format consumable by the binary tool env, it might have more effect than just a random individual such as myself making such a suggestion.
thanks
- thomas