pygments / pygments.rb

💎 Ruby wrapper for Pygments syntax highlighter
MIT License
572 stars 141 forks source link

Mapping for turtle lexer missing in lexers cache file #175

Closed jechterhoff closed 7 years ago

jechterhoff commented 7 years ago

Hello,

Please update the lexers cache file to include a mapping for the turtle lexer.

Background: I'm writing an asciidoc document that contains source examples in Turtle (https://www.w3.org/TR/turtle/). Pygments supports highlighting for Turtle. However, when converting the document to html using asciidoctor (which uses pygments.rb) the Turtle examples are not highlighted. I've already filed an issue with asciidoctor, including an example, and it turned out that the missing mapping of the turtle lexer in pygments.rb was the cause. For details, see https://github.com/asciidoctor/asciidoctor/issues/2001 That issue is now closed, since a workaround is available. I created this issue so that the workaround will hopefully no longer be required after the next release of pygments.rb.

gfx commented 7 years ago

Done by #180, which is included in pygments.rb v1.2.0.