In the following code
twidth = 2.0 // Width of teeth
smooth = 50 ; // circle smoothing, higher is smoother but slower
The error is reported on the second line, with the red box positioned just
before the = sign. The actual error is of course the missing ";" on the
first line.
version 2014.12.25 (git 73163f2), 32 bit Win XP
--
View this message in context: http://forum.openscad.org/Error-message-one-line-off-tp10863.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
That is actually the correct handling of these kind of errors.
Remember that newlines are actually ignored in the code. Here is an example
that is valid;
"test"
;
If the first ; is removed then 'word' is the first place in the code where
the syntax is wrong, and that is where the error will pop up.
--
View this message in context: http://forum.openscad.org/Error-message-one-line-off-tp10863p10864.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
OK then let me rephrase the comment.
Given that the construction <var> = <constant> <var> is syntactically
incorrect, the scanner should position the red box /before /the second var
rather than after it since the most likely assumption is that something
should have appeared between the constant and the second var, like an
operator or a ";". IMHO. Not a big deal.
--
View this message in context: http://forum.openscad.org/Error-message-one-line-off-tp10863p10866.html
Sent from the OpenSCAD mailing list archive at Nabble.com.