diff options
author | cocoatomo <cocoatomo77@gmail.com> | 2016-06-14 01:33:42 +0900 |
---|---|---|
committer | cocoatomo <cocoatomo77@gmail.com> | 2016-06-14 01:33:42 +0900 |
commit | e10e63b7cdb19e95bf7cef3502268521cfc81235 (patch) | |
tree | f0adfe7563a418c78741ea082fc7df3751eccf4f /doc | |
parent | d72791b740c7ed59e17fb6e0d953ff84ae735af9 (diff) | |
download | pygments-e10e63b7cdb19e95bf7cef3502268521cfc81235.tar.gz |
Insert a missing argument "self"
Diffstat (limited to 'doc')
-rw-r--r-- | doc/docs/lexerdevelopment.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/docs/lexerdevelopment.rst b/doc/docs/lexerdevelopment.rst index fd6e76b9..9109180d 100644 --- a/doc/docs/lexerdevelopment.rst +++ b/doc/docs/lexerdevelopment.rst @@ -361,7 +361,7 @@ There are a few more things you can do with states: tokens = {...} def get_tokens_unprocessed(self, text, stack=('root', 'otherstate')): - for item in RegexLexer.get_tokens_unprocessed(text, stack): + for item in RegexLexer.get_tokens_unprocessed(self, text, stack): yield item Some lexers like the `PhpLexer` use this to make the leading ``<?php`` |