diff options
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/__init__.py | 3 | ||||
-rw-r--r-- | pygments/lexers/agile.py | 3 | ||||
-rw-r--r-- | pygments/lexers/parsers.py | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/pygments/__init__.py b/pygments/__init__.py index 2e63f988..41d482d2 100644 --- a/pygments/__init__.py +++ b/pygments/__init__.py @@ -18,7 +18,8 @@ The `Pygments tip`_ is installable with ``easy_install Pygments==dev``. - .. _Pygments tip: http://dev.pocoo.org/hg/pygments-main/archive/tip.tar.gz#egg=Pygments-dev + .. _Pygments tip: + http://dev.pocoo.org/hg/pygments-main/archive/tip.tar.gz#egg=Pygments-dev :copyright: Copyright 2006-2009 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py index a6c21a10..1a57c737 100644 --- a/pygments/lexers/agile.py +++ b/pygments/lexers/agile.py @@ -127,7 +127,8 @@ class PythonLexer(RegexLexer): ('[a-zA-Z_][a-zA-Z0-9_]*', Name.Class, '#pop') ], 'import': [ - (r'((?:\s|\\\s)+)(as)((?:\s|\\\s)+)', bygroups(Text, Keyword.Namespace, Text)), + (r'((?:\s|\\\s)+)(as)((?:\s|\\\s)+)', + bygroups(Text, Keyword.Namespace, Text)), (r'[a-zA-Z_][a-zA-Z0-9_.]*', Name.Namespace), (r'(\s*)(,)(\s*)', bygroups(Text, Operator, Text)), (r'', Text, '#pop') # all else: go back diff --git a/pygments/lexers/parsers.py b/pygments/lexers/parsers.py index f967132a..5d7118aa 100644 --- a/pygments/lexers/parsers.py +++ b/pygments/lexers/parsers.py @@ -440,7 +440,8 @@ class AntlrLexer(RegexLexer): include('whitespace'), include('comments'), (r'{', Punctuation), - (r'(' + _TOKEN_REF + r')(\s*)(=)?(\s*)(' + _STRING_LITERAL + ')?(\s*)(;)', + (r'(' + _TOKEN_REF + r')(\s*)(=)?(\s*)(' + _STRING_LITERAL + + ')?(\s*)(;)', bygroups(Name.Label, Whitespace, Punctuation, Whitespace, String, Whitespace, Punctuation)), (r'}', Punctuation, '#pop'), |