Commits

Jeffrey Arnold  committed 828185c

SLexer: more general support of special operators

  • Participants
  • Parent commits 7e1a522
  • Branches fix-r

Comments (0)

Files changed (1)

File pygments/lexers/math.py

         ],
         'operators': [
             (r'<-|-|==|<=|>=|<|>|&&|&|!=|\|\|?', Operator),
-            (r'\*|\+|\^|/|%%|%/%|=', Operator),
-            (r'%in%|%*%', Operator)
+            (r'\*|\+|\^|/|%[^%]*%|=', Operator)
         ],
         'builtin_symbols': [
             (r'(NULL|NA(_(integer|real|complex|character)_)?|TRUE|FALSE|NaN|\.{3})\b', Keyword.Constant),