• Steve Beattie's avatar
    This patch adds a couple of additional lineno reporting testcases: · 2d2897f4
    Steve Beattie authored
      * a non-include related syntax error (errors/modefail.sd)
      * multiple successful includes followed by a failed include
        (errors/multi_include.sd)
    
    It also fixes two issues with the parser's line counting:
    
      * the count began at 0 (demonstrated by the first testcase's error
        being reporting on one line less than it should be), and
    
      * an extra line increment when includes were detected (demonstrated
        by the second testcase's error being reported at a line beyond the
        correct linenumber.
    
    The existing testcases did not catch these because they were all
    based on the first include in the file failing and so the start of
    the count from 0 counteracted the extra counted line.
    2d2897f4
parser_include.c 6.99 KB