Le 23/10/23 à 10h42, Slavko a écrit :

> Dňa 23. októbra 2023 10:10:41 UTC používateľ "Denis Bitouzé"
> <denis.bito...@gmail.com> napísal:
>
>>Now, I've no idea what could be a proper name instead of `test.py` for
>>my `test` “extension”. I guess reusing the same name `acetexlexer.py` as
>>used for my own lexer would be a bad idea. Any suggestion is welcome.
>
> my_lexers.py :-D

;)

The problem is that I seem to already have a file dedicated to my lexer:
`acetexlexer.py`. So my question is, since my lexer file is
`acetexlexer.py`, what is the purpose/role/status/whatever of the file
I've (temporarily) named `test.py` and containing:

┌────
│ from pygments.lexers.acetexlexer import AceTexLexer
│
│ def setup(app):
│     app.add_lexer('xlatex', AceTexLexer)
│     return {
│            'parallel_read_safe': True,
│            'parallel_write_safe': True,
│     }
└──── 

Regards.
-- 
Denis

-- 
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/871qdllc4i.fsf%40example.com.

Reply via email to