From 0687bc322f2a3d26396bb9ac398e19c72f6a20d5 Mon Sep 17 00:00:00 2001 From: Tinnet Coronam Date: Wed, 17 Oct 2012 22:04:25 +0200 Subject: small fix to classname handling --- pygments/lexers/compiled.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index 7ea02a00..3887197d 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -3142,10 +3142,10 @@ class MonkeyLexer(RegexLexer): (r'%s\.' % name_module, Name.Namespace), (r'%s\b' % keyword_type, Keyword.Type), (r'%s\b' % name_class, Name.Class), - (r'\s+', Text), # array (of given size) (r'(\[)\s*(\d*)\s*(\])', bygroups(Punctuation, Number.Integer, Punctuation)), - # generic + # generics + (r'\s+(?!<)', Text, '#pop'), (r'<', Punctuation, '#push'), (r'>', Punctuation, '#pop'), (r'\n', Text, '#pop'), -- cgit v1.2.1