Commits

gbrandl  committed 9005e1c

Update from author.

  • Participants
  • Parent commits 8d07db4
  • Branches trunk

Comments (0)

Files changed (1)

File pygments/lexers/math.py

             (r'\[|\]|\[\[|\]\]|\$|\(|\)|@|:::?|;|,', Punctuation),
         ],
         'keywords': [
-            (r'for(?=\s*\()|while(?=\s*\()|if(?=\s*\()|(?<=\s)else|(?<=\s)break(?=;|$)',
+            (r'for(?=\s*\()|while(?=\s*\()|if(?=\s*\()|(?<=\s)else|'
+             r'(?<=\s)break(?=;|$)|return(?=\s*\()|function(?=\s*\()',
              Keyword.Reserved)
         ],
         'operators': [