diff options
author | Tinnet Coronam <tinnet@coronam.net> | 2012-10-17 22:04:25 +0200 |
---|---|---|
committer | Tinnet Coronam <tinnet@coronam.net> | 2012-10-17 22:04:25 +0200 |
commit | 0687bc322f2a3d26396bb9ac398e19c72f6a20d5 (patch) | |
tree | 5d0a1cc3531d5039d7f75689abe4f41454c71114 | |
parent | 3c6befe93b212798429f124da39f0add1e28bb94 (diff) | |
download | pygments-0687bc322f2a3d26396bb9ac398e19c72f6a20d5.tar.gz |
small fix to classname handling
-rw-r--r-- | pygments/lexers/compiled.py | 4 |
1 files 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'), |