Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#897 ivlpp ignores escaped backslashes in strings

devel
closed-fixed
nobody
5
2012-07-09
2012-07-02
Anonymous
No

This is in today's (2012.07.01) git-head, and previous versions, too.

If there is an escaped backslash at the end of a string then ivlpp does not skip it properly to end the string on the subsequent double quote. Attached is a test case which ivlpp does not preprocess correctly.

Adding "<CSTRING>\\\\ |" before "<CSTRING>\\\" |" near line 263 in ivlpp/lexor.lex makes ivlpp properly skip escaped backslashes. The lexer for ivl already has this construct, so no problem shows up there.

Discussion

  •  
    Attachments
  • Cary R.
    Cary R.
    2012-07-09

    I added the proposed change.

     
  • Cary R.
    Cary R.
    2012-07-09

    • status: open --> closed-fixed