summaryrefslogtreecommitdiff
path: root/pygments/lexers/agile.py
diff options
context:
space:
mode:
authorRob Hoelz <rob@hoelz.ro>2012-12-24 11:26:48 +0100
committerRob Hoelz <rob@hoelz.ro>2012-12-24 11:26:48 +0100
commit1fabf21d842e46002120e13f3c834c5d8222bcd6 (patch)
tree72e5387ae85e51b1a329aa9f295fa5967bb701c7 /pygments/lexers/agile.py
parentefc849485c646c51c84039cee95886c618ce8cdd (diff)
downloadpygments-1fabf21d842e46002120e13f3c834c5d8222bcd6.tar.gz
Add support for %hash<<key>>/%hash?key?
Diffstat (limited to 'pygments/lexers/agile.py')
-rw-r--r--pygments/lexers/agile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py
index 1039c602..4245c3da 100644
--- a/pygments/lexers/agile.py
+++ b/pygments/lexers/agile.py
@@ -2083,8 +2083,8 @@ class Perl6Lexer(ExtendedRegexLexer):
( _build_word_match(PERL6_KEYWORDS, PERL6_IDENTIFIER_CHARS), Keyword ),
( _build_word_match(PERL6_BUILTINS + PERL6_BUILTIN_CLASSES, PERL6_IDENTIFIER_CHARS), Name.Builtin),
# copied from PerlLexer
- ( r'[$@%&][*][' + PERL6_IDENTIFIER_CHARS + ']+(?:<.*?>)?', Name.Variable.Global ),
- ( r'[$@%&][.^:?=!~]?[' + PERL6_IDENTIFIER_CHARS + ']+(?:<.*?>)?', Name.Variable ),
+ ( r'[$@%&][*][' + PERL6_IDENTIFIER_CHARS + u']+(?:<<.*?>>|<.*?>|«.*?»)?', Name.Variable.Global ),
+ ( r'[$@%&][.^:?=!~]?[' + PERL6_IDENTIFIER_CHARS + u']+(?:<<.*?>>|<.*?>|«.*?»)?', Name.Variable ),
( r'(?:q|qq|Q)(?P<adverbs>[\w\s:]*)(?P<delimiter>[^0-9a-zA-Z:\s]+)', brackets_callback(String) ),
# copied from PerlLexer
( r'0_?[0-7]+(_[0-7]+)*', Number.Oct ),