I noticed that when a multiline string is declared it is only considered
one line by the parser, resulting in confusing line numbers when syntax
errors occur. For example,
test = "{ 10.0.0.0/8,
10.0.0.1/8,
10.0.0.2/8,
}"
pack out quick from $test to any
the parser indicates the syntax error is on line 3. This is extremely
annoying with a large configuration file with multiple multiline string
definitions.
I added the following two lines of code into the section of the parser that
eats newlines in strings:
yylval.lineno = lineno;
lineno++;
this appears to give the correct line numbers.
Thoughts?
Thanks...
--
Paul B. Henson | (909) 869-3781 | http://www.csupomona.edu/~henson/
Operating Systems and Network Analyst | [EMAIL PROTECTED]
California State Polytechnic University | Pomona CA 91768