I have a very simple question: how does Stan count lines for its error messages? Now, the question might seem straightforward, however I keep getting error messages with reference to line where there is no code or that are clearly not the line with a coding error. So it is clear that Stan does not count lines form the start of the Stan file (where I usually put comment lines describing what the model does). I then thought it started counting from the first line of actual code, but I still get weird line references for errors. For example, in this piece of code, what is the line number for y? Is it line 10 or 3 or something else?
// Author: Myself
// Date: Feb 2023
// This model is a model
////////////////////////////////////////////////////////////////////////////////
data {
int<lower=0> N;
vector[N] y;
vector[N] se;
}