diff options
author | gbrandl <devnull@localhost> | 2009-09-11 15:16:16 +0200 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2009-09-11 15:16:16 +0200 |
commit | 62a15a609483430c0770a3c152f069954ed83c76 (patch) | |
tree | ae4dc0ebb35c3ab020076b01e4e153c51abfd15b /pygments | |
parent | acdc154512fa4702fd6fed526ea1e0bbc62759cd (diff) | |
download | pygments-62a15a609483430c0770a3c152f069954ed83c76.tar.gz |
Make make check happy.
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'), |