Commits

Anonymous committed caf2c78

#410: Recognize bitwise and logical or in Matlab

  • Participants
  • Parent commits c16d0b8
  • Branches trunk

Comments (0)

Files changed (2)

 
 - Fix a bug when backslashes are used in odd locations in Python (#395)
 
-- Fix various bugs in Matlab and S-Plus lexers, thanks to Winston Chang (#411,
-  #413, #414)
+- Fix various bugs in Matlab and S-Plus lexers, thanks to Winston Chang (#410,
+  #411, #413, #414)
 
 
 Version 1.0

File pygments/lexers/math.py

             ("(" + "|".join(elfun+specfun+elmat) + r')\b',  Name.Builtin),
 
             # operators:
-            (r'-|==|~=|<|>|<=|>=|&&|&|~', Operator),
+            (r'-|==|~=|<|>|<=|>=|&&|&|~|\|\|?', Operator),
             # operators requiring escape for re:
             (r'\.\*|\*|\+|\.\^|\.\\|\.\/|\/|\\', Operator),