diff options
author | Jeffrey B. Arnold <jeffrey.arnold@gmail.com> | 2014-07-27 22:04:39 -0400 |
---|---|---|
committer | Jeffrey B. Arnold <jeffrey.arnold@gmail.com> | 2014-07-27 22:04:39 -0400 |
commit | 04682453bfada53ed746b306f7a8c0553c8610ab (patch) | |
tree | e04e6e10acf5955de059c60e5ac5095eb7479194 /pygments/lexers/math.py | |
parent | 76f1913368ca68af86dbdc235c5531ae209ea3a3 (diff) | |
download | pygments-04682453bfada53ed746b306f7a8c0553c8610ab.tar.gz |
Update StanLexer to support Stan v2.4.0
Diffstat (limited to 'pygments/lexers/math.py')
-rw-r--r-- | pygments/lexers/math.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pygments/lexers/math.py b/pygments/lexers/math.py index d005c0e8..c51403e2 100644 --- a/pygments/lexers/math.py +++ b/pygments/lexers/math.py @@ -1572,8 +1572,8 @@ class JagsLexer(RegexLexer): class StanLexer(RegexLexer): """Pygments Lexer for Stan models. - The Stan modeling language is specified in the *Stan Modeling Language User's Guide and Reference Manual, v2.3.0*, - `pdf <https://github.com/stan-dev/stan/releases/download/v2.3.0/stan-reference-2.3.0.pdf>`__. + The Stan modeling language is specified in the *Stan Modeling Language User's Guide and Reference Manual, v2.4.0*, + `pdf <https://github.com/stan-dev/stan/releases/download/v2.4.0/stan-reference-2.4.0.pdf>`__. .. versionadded:: 1.6 """ @@ -1630,8 +1630,8 @@ class StanLexer(RegexLexer): # Assignment operators # SLexer makes these tokens Operators. (r'<-|~', Operator), - # Infix and prefix operators (and = ) - (r"\+|-|\.?\*|\.?/|\\|'|==?|!=?|<=?|>=?|\|\||&&", Operator), + # Infix, prefix and postfix operators (and = ) + (r"\+|-|\.?\*|\.?/|\\|'|\^|==?|!=?|<=?|>=?|\|\||&&", Operator), # Block delimiters (r'[{}]', Punctuation), ] |