pygments / pygments.rb

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

Lexers are loaded in random order #41

Closed cjohansen closed 3 years ago

cjohansen commented 12 years ago

It seems that the Lexers are loaded in random order. In my test, I get occasional failures when highlighting a .txt file, depending on which was loaded into Pygments.rb last: "Text only" (most of the time) or CMake (occasionally). This produces some truly bizarre behavior. Is it possible to make the lexer ordering deterministic?

slonopotamus commented 3 years ago

I cannot reproduce it with current master branch.