pygments / pygments.rb

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

resolves #187 add support for custom lexers #225

Closed slonopotamus closed 3 years ago

slonopotamus commented 3 years ago

pygments.rb no longer stores list of lexers in a file. Instead, Pygments is queried for available lexers.

In order to avoid spawning Pygments process when pygments.rb is just loaded, lexers are now stored in a lazily initialized cache.