summaryrefslogtreecommitdiff
path: root/pygments/lexer.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-11-24 12:32:25 +0100
committerGeorg Brandl <georg@python.org>2013-11-24 12:32:25 +0100
commit0e187dc6d5b3735c7fe82d79e6c2ceebeebc2d55 (patch)
treef9b3a48eda3832acb4bffe57032693df8a0f86dc /pygments/lexer.py
parent790a48da558443b3aa4c9f04a55a43b1a48b3d4d (diff)
downloadpygments-0e187dc6d5b3735c7fe82d79e6c2ceebeebc2d55.tar.gz
Fix docstring of get_tokens_unprocessed.
Diffstat (limited to 'pygments/lexer.py')
-rw-r--r--pygments/lexer.py4
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.
"""