def load_haskell_syntax(self): self.master.lexer = HaskellLexer() self.master.initial_highlight()
def setup(app): from sphinx.highlighting import lexers from pygments.lexers import HaskellLexer lexers['haskell ignore'] = HaskellLexer(stripnl=False)
def lexer(): yield HaskellLexer()