summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcocoatomo <cocoatomo77@gmail.com>2016-06-14 01:33:42 +0900
committercocoatomo <cocoatomo77@gmail.com>2016-06-14 01:33:42 +0900
commite10e63b7cdb19e95bf7cef3502268521cfc81235 (patch)
treef0adfe7563a418c78741ea082fc7df3751eccf4f
parentd72791b740c7ed59e17fb6e0d953ff84ae735af9 (diff)
downloadpygments-e10e63b7cdb19e95bf7cef3502268521cfc81235.tar.gz
Insert a missing argument "self"
-rw-r--r--doc/docs/lexerdevelopment.rst2
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``