Hi chenwj,

2013/1/17 陳韋任 <[email protected]>:
> def setup(app):
>     from sphinx.highlighting import lexers
>     lexers['tblgen'] = TblgenLexer()
>
>
> But `make html` complains it cannot find TblgenLexer, error message below:
>
> Exception occurred:
>   File "/z/tmp/chenwj/lbd/source/conf.py", line 25, in setup
>     lexers['tblgen'] = TblgenLexer()
> NameError: global name 'TblgenLexer' is not defined
>
>
> What am I missing here? :-(

You need `from tblgen.tblgen import TblgenLexer` before use.

--
Takayuki SHIMIZUKAWA
http://about.me/shimizukawa

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/sphinx-users?hl=en.


Reply via email to