• Alexandre Duret-Lutz's avatar
    how: fix multi-line incomplete strings · ad771454
    Alexandre Duret-Lutz authored
    Location tracking was incorrect for multi-line
    strings/comments/parentheses.  This also fixes and tests recovery on
    inclosed strings/comments/parentheses.
    
    * src/hoaparse/hoaparse.yy: Abort on expected EOF.
    * src/hoaparse/hoascan.ll: Track newlines inside strings and comments.
    Do not use unput() to close incomplete parentheses.
    * src/tgbatest/neverclaimread.test, src/tgbatest/hoaparse.test: Add
    more tests.
    ad771454
hoaparse.test 13.8 KB