Dňa 22. októbra 2023 13:51:21 UTC používateľ "Denis Bitouzé" 
<denis.bito...@gmail.com> napísal:

>  │ def setup(app):
>  │     from acetexlexer import AceTexLexer
>  │     app.add_lexer('xlatex', acetexlexer.AceTexLexer)
>  └────

I cannot comment lexer implementation itself, i never did
own, but i use:

  def setup(app):
      from pylogrotate.lexer import LogrotateLexer
      app.add_lexer('logrotate', LogrotateLexer())

Note the "()" at end, to pass instance (object), you are
passing class. And as you directly imported "AceTexLexer",
you don't need to use "acetexlexer.AceTexLexer", just
"AceTexLexer()".

regards


-- 
Slavko
https://www.slavino.sk/

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/EFF0CBAE-730A-4B03-AC7C-AA7E61393D54%40slavino.sk.

Reply via email to