diff options
author | Jeffrey B. Arnold <jeffrey.arnold@gmail.com> | 2014-11-14 04:44:13 -0800 |
---|---|---|
committer | Jeffrey B. Arnold <jeffrey.arnold@gmail.com> | 2014-11-14 04:44:13 -0800 |
commit | 4550ef568a25ba93afec4ec82e7b2a6e2d70470d (patch) | |
tree | 797d4feb240a2e40df95ac4bdfa371f5198a16bd | |
parent | 1da822a475efc5be488abcd1847741ffadc9f606 (diff) | |
download | pygments-4550ef568a25ba93afec4ec82e7b2a6e2d70470d.tar.gz |
updated Stan lexer to language version 2.5.0
-rw-r--r-- | pygments/lexers/_stan_builtins.py | 53 | ||||
-rw-r--r-- | pygments/lexers/modeling.py | 4 |
2 files changed, 34 insertions, 23 deletions
diff --git a/pygments/lexers/_stan_builtins.py b/pygments/lexers/_stan_builtins.py index 246cdd88..f9e331d3 100644 --- a/pygments/lexers/_stan_builtins.py +++ b/pygments/lexers/_stan_builtins.py @@ -4,26 +4,25 @@ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This file contains the names of functions for Stan used by - ``pygments.lexers.math.StanLexer. This is for Stan language version 2.4.0. + ``pygments.lexers.math.StanLexer. This is for Stan language version 2.5.0. :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ -KEYWORDS = ( - 'else', +KEYWORDS = ( 'else', 'for', 'if', 'in', 'increment_log_prob', + 'integrate_ode', 'lp__', 'print', + 'reject', 'return', - 'while', -) + 'while') -TYPES = ( - 'cholesky_factor_corr', +TYPES = ( 'cholesky_factor_corr', 'cholesky_factor_cov', 'corr_matrix', 'cov_matrix', @@ -36,15 +35,15 @@ TYPES = ( 'simplex', 'unit_vector', 'vector', - 'void', -) + 'void') -FUNCTIONS = ( - 'Phi', +FUNCTIONS = ( 'Phi', 'Phi_approx', 'abs', 'acos', 'acosh', + 'append_col', + 'append_row', 'asin', 'asinh', 'atan', @@ -144,6 +143,11 @@ FUNCTIONS = ( 'fmax', 'fmin', 'fmod', + 'frechet_ccdf_log', + 'frechet_cdf', + 'frechet_cdf_log', + 'frechet_log', + 'frechet_rng', 'gamma_ccdf_log', 'gamma_cdf', 'gamma_cdf_log', @@ -152,6 +156,7 @@ FUNCTIONS = ( 'gamma_q', 'gamma_rng', 'gaussian_dlm_obs_log', + 'get_lp', 'gumbel_ccdf_log', 'gumbel_cdf', 'gumbel_cdf_log', @@ -182,6 +187,8 @@ FUNCTIONS = ( 'inv_wishart_rng', 'inverse', 'inverse_spd', + 'is_inf', + 'is_nan', 'lbeta', 'lgamma', 'lkj_corr_cholesky_log', @@ -252,6 +259,7 @@ FUNCTIONS = ( 'normal_log', 'normal_rng', 'not_a_number', + 'num_elements', 'ordered_logistic_log', 'ordered_logistic_rng', 'owens_t', @@ -260,6 +268,11 @@ FUNCTIONS = ( 'pareto_cdf_log', 'pareto_log', 'pareto_rng', + 'pareto_type_2_ccdf_log', + 'pareto_type_2_cdf', + 'pareto_type_2_cdf_log', + 'pareto_type_2_log', + 'pareto_type_2_rng', 'pi', 'poisson_ccdf_log', 'poisson_cdf', @@ -354,11 +367,9 @@ FUNCTIONS = ( 'weibull_log', 'weibull_rng', 'wishart_log', - 'wishart_rng', -) + 'wishart_rng') -DISTRIBUTIONS = ( - 'bernoulli', +DISTRIBUTIONS = ( 'bernoulli', 'bernoulli_logit', 'beta', 'beta_binomial', @@ -372,6 +383,7 @@ DISTRIBUTIONS = ( 'double_exponential', 'exp_mod_normal', 'exponential', + 'frechet', 'gamma', 'gaussian_dlm_obs', 'gumbel', @@ -396,6 +408,7 @@ DISTRIBUTIONS = ( 'normal', 'ordered_logistic', 'pareto', + 'pareto_type_2', 'poisson', 'poisson_log', 'rayleigh', @@ -405,11 +418,9 @@ DISTRIBUTIONS = ( 'uniform', 'von_mises', 'weibull', - 'wishart', -) + 'wishart') -RESERVED = ( - 'alignas', +RESERVED = ( 'alignas', 'alignof', 'and', 'and_eq', @@ -494,5 +505,5 @@ RESERVED = ( 'volatile', 'wchar_t', 'xor', - 'xor_eq', -) + 'xor_eq') + diff --git a/pygments/lexers/modeling.py b/pygments/lexers/modeling.py index 1552fbf8..c3bf5208 100644 --- a/pygments/lexers/modeling.py +++ b/pygments/lexers/modeling.py @@ -284,8 +284,8 @@ 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.4.0*, - `pdf <https://github.com/stan-dev/stan/releases/download/v2.4.0/stan-reference-2.4.0.pdf>`__. + User's Guide and Reference Manual, v2.5.0*, + `pdf <https://github.com/stan-dev/stan/releases/download/v2.5.0/stan-reference-2.5.0.pdf>`__. .. versionadded:: 1.6 """ |