diff options
author | Georg Brandl <georg@python.org> | 2014-09-20 00:06:48 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-09-20 00:06:48 +0200 |
commit | 3aa632c6c357746459a8847feb056cc3c86db93c (patch) | |
tree | 3b285fdac519a208586a72ad2fa8ce0fcf0993d8 /doc/docs/lexerdevelopment.rst | |
parent | 827f32f543bd55ad65d01acca45658169a9b4a8a (diff) | |
parent | ed8910f067a347021854227f194f374c5b8cce2d (diff) | |
download | pygments-3aa632c6c357746459a8847feb056cc3c86db93c.tar.gz |
Merged in jaingaurav2/pygments-main-1011 (pull request #376)
Diffstat (limited to 'doc/docs/lexerdevelopment.rst')
-rw-r--r-- | doc/docs/lexerdevelopment.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/docs/lexerdevelopment.rst b/doc/docs/lexerdevelopment.rst index eab1306a..48ede92c 100644 --- a/doc/docs/lexerdevelopment.rst +++ b/doc/docs/lexerdevelopment.rst @@ -190,7 +190,7 @@ nevertheless need a group, use a non-capturing group defined using this syntax: If you find yourself needing a capturing group inside the regex which shouldn't be part of the output but is used in the regular expressions for backreferencing (eg: ``r'(<(foo|bar)>)(.*?)(</\2>)'``), you can pass `None` -to the bygroups function and it will skip that group will be skipped in the +to the bygroups function and that group will be skipped in the output. @@ -584,7 +584,7 @@ the ``get_tokens_unprocessed()`` method. The following lexer subclasses the .. sourcecode:: python - from pygments.lexers.agile import PythonLexer + from pygments.lexers.python import PythonLexer from pygments.token import Name, Keyword class MyPythonLexer(PythonLexer): |