diff options
author | gbrandl <devnull@localhost> | 2007-05-06 18:38:04 +0200 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2007-05-06 18:38:04 +0200 |
commit | 51828346e2b9740b2594947103589fb64db08291 (patch) | |
tree | ae77b93b245b9880d5ce14409755a1d0bfba217d | |
parent | 0b6c1be09d077aba79d7b82f56a9e555f9afc3fe (diff) | |
download | pygments-51828346e2b9740b2594947103589fb64db08291.tar.gz |
[svn] A few corrections.
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | pygments/lexer.py | 3 | ||||
-rw-r--r-- | pygments/lexers/dotnet.py | 6 | ||||
-rw-r--r-- | pygments/lexers/math.py | 6 |
4 files changed, 11 insertions, 6 deletions
@@ -37,6 +37,8 @@ Version 0.8 (in development) - Added a D lexer, thanks to Kirk McDonald. +- Added a MuPad lexer, thanks to Christopher Creutzig. + Version 0.7.1 ------------- diff --git a/pygments/lexer.py b/pygments/lexer.py index e5f32ee2..c53dad0f 100644 --- a/pygments/lexer.py +++ b/pygments/lexer.py @@ -396,7 +396,8 @@ class RegexLexerMeta(LexerMeta): itokens = [] for istate in tdef2: assert istate != state, 'circular state ref %r' % istate - itokens.extend(cls._process_state(unprocessed, processed, istate)) + itokens.extend(cls._process_state(unprocessed, + processed, istate)) processed[new_state] = itokens new_state = (new_state,) elif isinstance(tdef2, tuple): diff --git a/pygments/lexers/dotnet.py b/pygments/lexers/dotnet.py index 5c97c430..b98c6fe4 100644 --- a/pygments/lexers/dotnet.py +++ b/pygments/lexers/dotnet.py @@ -62,9 +62,11 @@ class CSharpLexer(RegexLexer): 'basic': ('@?[_' + uni.Lu + uni.Ll + uni.Lt + uni.Lm + uni.Nl + ']' + '[' + uni.Lu + uni.Ll + uni.Lt + uni.Lm + uni.Nl + uni.Nd + uni.Pc + uni.Cf + uni.Mn + uni.Mc + ']*'), - 'full': ('@?(?:_|[^' + _escape(uni.allexcept('Lu', 'Ll', 'Lt', 'Lm', 'Lo', 'Nl')) + '])' + 'full': ('@?(?:_|[^' + + _escape(uni.allexcept('Lu', 'Ll', 'Lt', 'Lm', 'Lo', 'Nl')) + '])' + '[^' + _escape(uni.allexcept('Lu', 'Ll', 'Lt', 'Lm', 'Lo', - 'Nl', 'Nd', 'Pc', 'Cf', 'Mn', 'Mc')) + ']*'), + 'Nl', 'Nd', 'Pc', 'Cf', 'Mn', + 'Mc')) + ']*'), } tokens = {} diff --git a/pygments/lexers/math.py b/pygments/lexers/math.py index f93a6330..dc402dc5 100644 --- a/pygments/lexers/math.py +++ b/pygments/lexers/math.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """ pygments.lexers.math - ~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~~~~~~~ Lexers for math languages. @@ -16,10 +16,10 @@ __all__ = ['MuPADLexer'] class MuPADLexer(RegexLexer): """ - A MuPAD lexer. + A `MuPAD <http://www.mupad.com>`_ lexer. Contributed by Christopher Creutzig <christopher@creutzig.de>. - *New in Pygments 0.8* + *New in Pygments 0.8.* """ name = 'MuPAD' aliases = ['mupad'] |