Пример #1
0
 def load_haskell_syntax(self):
     self.master.lexer = HaskellLexer()
     self.master.initial_highlight()
Пример #2
0
def setup(app):
    from sphinx.highlighting import lexers
    from pygments.lexers import HaskellLexer
    lexers['haskell ignore'] = HaskellLexer(stripnl=False)
Пример #3
0
def lexer():
    yield HaskellLexer()