diff options
author | Rob Hoelz <rob@hoelz.ro> | 2013-03-19 21:53:01 +0100 |
---|---|---|
committer | Rob Hoelz <rob@hoelz.ro> | 2013-03-19 21:53:01 +0100 |
commit | 99ed5b04d0e4cbc33a333083319045d82b4d213b (patch) | |
tree | 10e976d170db2d4c2f2bba025903415486da4378 /pygments/lexers/agile.py | |
parent | 8ca71118980f8e8a373aec39f709f087cb089436 (diff) | |
download | pygments-99ed5b04d0e4cbc33a333083319045d82b4d213b.tar.gz |
Make sure that TYPE:D and TYPE:U are properly highlighted
Diffstat (limited to 'pygments/lexers/agile.py')
-rw-r--r-- | pygments/lexers/agile.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py index 5932beec..2f52db2a 100644 --- a/pygments/lexers/agile.py +++ b/pygments/lexers/agile.py @@ -2168,7 +2168,8 @@ class Perl6Lexer(ExtendedRegexLexer): # deal with a special class in the Perl 6 grammar (role q { ... }) ( r'(role)(\s*)(q)(\s*)', bygroups(Keyword, Text, Name, Text) ), ( _build_word_match(PERL6_KEYWORDS, PERL6_IDENTIFIER_CHARS), Keyword ), - ( _build_word_match(PERL6_BUILTINS + PERL6_BUILTIN_CLASSES, PERL6_IDENTIFIER_CHARS), Name.Builtin), + ( _build_word_match(PERL6_BUILTIN_CLASSES, PERL6_IDENTIFIER_CHARS, suffix = '(?::[UD])?'), Name.Builtin ), + ( _build_word_match(PERL6_BUILTINS, PERL6_IDENTIFIER_CHARS), Name.Builtin), # copied from PerlLexer ( r'[$@%&][.^:?=!~]?[' + PERL6_IDENTIFIER_CHARS + u']+(?:<<.*?>>|<.*?>|«.*?»)*', Name.Variable ), ( r'[$][!/]', Name.Variable.Global ), |