@@ -110,7 +110,7 @@ the tokens are reserved for future use.
110110
111111```
112112for, in, while, repeat, until, if, then, else,
113- true, false, target
113+ true, false
114114```
115115
116116Variables should not be named after types, either, and thus may not be
@@ -120,7 +120,7 @@ any of the following.
120120int, real, vector, simplex, unit_vector, ordered,
121121positive_ordered, row_vector, matrix,
122122cholesky_factor_corr, cholesky_factor_cov,
123- corr_matrix, cov_matrix.
123+ corr_matrix, cov_matrix
124124```
125125
126126The following block identifiers are reserved and cannot be used as variable names:
@@ -130,6 +130,11 @@ functions, model, data, parameters, quantities,
130130transformed, generated
131131```
132132
133+ Since Stan 2.22, the following identifiers cannot be used as variable names:
134+ ```
135+ target, lower, upper, offset, multiplier
136+ ```
137+
133138
134139#### Reserved Names from Stan Implementation {-}
135140
@@ -151,7 +156,7 @@ or `add`, but it may be named `pi` or `e`.
151156Variable names will also conflict with the names of distributions
152157suffixed with ` _lpdf ` , ` _lpmf ` , ` _lcdf ` , and ` _lccdf ` , ` _cdf ` , and
153158` _ccdf ` , such as ` normal_lcdf_log ` ; this also holds for the deprecated
154- forms ` _log ` , ` _cdf_log ` , and ` _ccdf_log ` ,
159+ forms ` _log ` , ` _cdf_log ` , and ` _ccdf_log ` .
155160
156161Using any of these variable names causes the ` stanc ` translator
157162to halt and report the name and location of the variable causing the
0 commit comments