diff options
author | gbrandl <devnull@localhost> | 2008-05-06 16:38:48 +0200 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2008-05-06 16:38:48 +0200 |
commit | 4ecfa91c17edf0f6286642e0f568dc526268facf (patch) | |
tree | b3eee6323056c833f0c29228f8dc555aa719046d | |
parent | 7db5c2de37e85c2fe6934e2c1a79c3763676ed20 (diff) | |
download | pygments-4ecfa91c17edf0f6286642e0f568dc526268facf.tar.gz |
Update from author.
-rw-r--r-- | pygments/lexers/math.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/math.py b/pygments/lexers/math.py index 00ba9e58..fe4d9b89 100644 --- a/pygments/lexers/math.py +++ b/pygments/lexers/math.py @@ -352,7 +352,8 @@ class SLexer(RegexLexer): (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': [ |