Commits

Rob Hoelz  committed 0da1881

Fix chains of bareword hash accesses

  • Participants
  • Parent commits 0f6a6a6

Comments (0)

Files changed (1)

File pygments/lexers/agile.py

             # copied from PerlLexer
             ( r'[$][!/]', Name.Variable.Global ),
             ( r'::[?]\w+', Name.Variable.Global ),
-            ( r'[$@%&][*][' + PERL6_IDENTIFIER_CHARS + u']+(?:<<.*?>>|<.*?>|«.*?»)?', Name.Variable.Global ),
-            ( r'[$@%&][.^:?=!~]?[' + PERL6_IDENTIFIER_CHARS + u']+(?:<<.*?>>|<.*?>|«.*?»)?', Name.Variable ),
+            ( r'[$@%&][*][' + PERL6_IDENTIFIER_CHARS + u']+(?:<<.*?>>|<.*?>|«.*?»)*', Name.Variable.Global ),
+            ( r'[$@%&][.^:?=!~]?[' + PERL6_IDENTIFIER_CHARS + u']+(?:<<.*?>>|<.*?>|«.*?»)*', Name.Variable ),
             ( r'[$]<.*?>', Name.Variable ),
             ( r'(?:q|qq|Q)[a-zA-Z]?\s*(?P<adverbs>:[\w\s:]+)?\s*(?P<delimiter>[^0-9a-zA-Z:\s]+)', brackets_callback(String) ),
             # copied from PerlLexer