Commits

mitsuhiko  committed cecdd19

r'' is better than r'(?:)'

  • Participants
  • Parent commits dd7b71c
  • Branches trunk

Comments (0)

Files changed (1)

File pygments/lexers/agile.py

              r'([a-zA-Z_][\w_]*[\!\?]?|\*\*?|[-+]@?|'
              r'[/%&|^`~]|\[\]=?|<<|>>|<=?>|>=?|===?)',
              bygroups(Name.Class, Operator, Name.Function), '#pop'),
-            (r'(?:)', Text, '#pop')
+            (r'', Text, '#pop')
         ],
         'classname': [
             (r'\(', Punctuation, 'defexpr'),
             (r'<<', Operator, '#pop'),
             (r'[A-Z_][\w_]*', Name.Class, '#pop'),
-            (r'(?:)', Text, '#pop')
+            (r'', Text, '#pop')
         ],
         'defexpr': [
             (r'(\))(\.|::)?', bygroups(Punctuation, Operator), '#pop'),