diff options
author | Georg Brandl <georg@python.org> | 2013-11-24 12:32:25 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-11-24 12:32:25 +0100 |
commit | 0e187dc6d5b3735c7fe82d79e6c2ceebeebc2d55 (patch) | |
tree | f9b3a48eda3832acb4bffe57032693df8a0f86dc /pygments/lexer.py | |
parent | 790a48da558443b3aa4c9f04a55a43b1a48b3d4d (diff) | |
download | pygments-0e187dc6d5b3735c7fe82d79e6c2ceebeebc2d55.tar.gz |
Fix docstring of get_tokens_unprocessed.
Diffstat (limited to 'pygments/lexer.py')
-rw-r--r-- | pygments/lexer.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pygments/lexer.py b/pygments/lexer.py index 662c059e..8538fe7c 100644 --- a/pygments/lexer.py +++ b/pygments/lexer.py @@ -192,7 +192,9 @@ class Lexer(object): def get_tokens_unprocessed(self, text): """ - Return an iterable of (tokentype, value) pairs. + Return an iterable of (index, tokentype, value) pairs where "index" + is the starting position of the token within the input text. + In subclasses, implement this method as a generator to maximize effectiveness. """ |