Wrong 'syntax error' line nr when using multiline comments (/* */)
Hi,
I noticed that when I'm evaluating Faust code within a ChucK program ( ie faust_chugin.eval(Faust code here) ), every time I get a syntax error reported on the console (that can be related to anything in my ChucK code), the line number is wrong (ie it says the error is at line 93 but then is at line 120).
It seems to me like the lines containing the Faust code are not taken in account.
In fact if I put the Faust code at the bottom of my ChucK code, then the syntax error reports are providing the right line number.
Tested on Ubuntu Studio 16.04 64bit - ChucK 1.4.0.0 - FaucK Linux package downloaded here: https://ccrma.stanford.edu/~rmichon/fauck/ - using the terminal
Looks like this is a generic problem with line counting in multiline strings. (I would post a sample program but I can't figure out github's rules for escaping backticks; it seems like they are different rules than markdown in general.)
It could potentially be solved by counting linebreaks in a multiline string in the parser.
Unfortunately, the lexer seems to treat both "" and `` strings as STRING_LIT, which is rather clumsy and would make this fix slightly more involved, but still doable.
this issue makes difficult to have headers like:
/*
* description....
*
* @author
* @copyright
*/