summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey B. Arnold <jeffrey.arnold@gmail.com>2014-05-09 17:15:41 -0400
committerJeffrey B. Arnold <jeffrey.arnold@gmail.com>2014-05-09 17:15:41 -0400
commit9d5512b0cc686b62a81d7cc2dc72a42332daccd1 (patch)
tree9aa9ddf5ea0d1abd1d96c04217898cae36a22f69
parent900e741b704178a498b43223ec33cd25505231a2 (diff)
downloadpygments-9d5512b0cc686b62a81d7cc2dc72a42332daccd1.tar.gz
update Stan lexer to Stan v2.2.0
-rw-r--r--pygments/lexers/_stan_builtins.py11
-rw-r--r--pygments/lexers/math.py5
2 files changed, 8 insertions, 8 deletions
diff --git a/pygments/lexers/_stan_builtins.py b/pygments/lexers/_stan_builtins.py
index fa45738d..583b44a8 100644
--- a/pygments/lexers/_stan_builtins.py
+++ b/pygments/lexers/_stan_builtins.py
@@ -4,7 +4,7 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This file contains the names of functions for Stan used by
- `pygments.lexers.math.StanLexer`.
+ ``pygments.lexers.math.StanLexer``. These builtins are from Stan language v2.2.0.
:copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
@@ -91,9 +91,11 @@ FUNCTIONS = [ 'Phi',
'diag_post_multiply',
'diag_pre_multiply',
'diagonal',
+ 'digamma',
'dims',
'dirichlet_log',
'dirichlet_rng',
+ 'distance',
'dot_product',
'dot_self',
'double_exponential_ccdf_log',
@@ -170,7 +172,6 @@ FUNCTIONS = [ 'Phi',
'lgamma',
'lkj_corr_log',
'lkj_corr_rng',
- 'lkj_cov_log',
'lmgamma',
'log',
'log10',
@@ -285,6 +286,7 @@ FUNCTIONS = [ 'Phi',
'sqrt',
'sqrt2',
'square',
+ 'squared_distance',
'step',
'student_t_ccdf_log',
'student_t_cdf',
@@ -303,6 +305,7 @@ FUNCTIONS = [ 'Phi',
'trace',
'trace_gen_quad_form',
'trace_quad_form',
+ 'trigamma',
'trunc',
'uniform_ccdf_log',
'uniform_cdf',
@@ -324,7 +327,6 @@ DISTRIBUTIONS = [ 'bernoulli',
'beta',
'beta_binomial',
'binomial',
- 'binomial_coefficient',
'binomial_logit',
'categorical',
'categorical_logit',
@@ -342,7 +344,6 @@ DISTRIBUTIONS = [ 'bernoulli',
'inv_gamma',
'inv_wishart',
'lkj_corr',
- 'lkj_cov',
'logistic',
'lognormal',
'multi_normal',
@@ -350,7 +351,6 @@ DISTRIBUTIONS = [ 'bernoulli',
'multi_normal_prec',
'multi_student_t',
'multinomial',
- 'multiply',
'neg_binomial',
'normal',
'ordered_logistic',
@@ -451,3 +451,4 @@ RESERVED = [ 'alignas',
'wchar_t',
'xor',
'xor_eq']
+
diff --git a/pygments/lexers/math.py b/pygments/lexers/math.py
index cfbfc432..51cf1395 100644
--- a/pygments/lexers/math.py
+++ b/pygments/lexers/math.py
@@ -1572,9 +1572,8 @@ class JagsLexer(RegexLexer):
class StanLexer(RegexLexer):
"""Pygments Lexer for Stan models.
- The Stan modeling language is specified in the *Stan 2.0.1
- Modeling Language Manual* `pdf
- <https://github.com/stan-dev/stan/releases/download/v2.0.1/stan-reference-2.0.1.pdf>`__
+ The Stan modeling language is specified in the *Stan Modeling Language User's Guide and Reference Manual, v2.2.0*,
+ `pdf <https://github.com/stan-dev/stan/releases/download/v2.2.0/stan-reference-2.2.0.pdf>`__.
.. versionadded:: 1.6
"""