Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-971

Strings Ending in Escaped Backslash are Inproperly Lexed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Low Low
    • 3.0.0, 2.0.17, 2.1.9
    • None
    • None
    • None

      It was found that the lexer does not properly handle strings ending in an escaped backslash. For example:

      description "some description that ends in a backslash \\"
      

      The lexer will not terminate the string at the last double quote. Instead it will interpret it as part of the string and continue lexing the next lines as though it belongs to the string.

      I have a commit which fixes this issue & tests it. I'll link it to this bug. I don't know how to organize the unit tests I've included so please let me know which packages it belongs to.

       

            danielle-mustillo Danielle Mustillo
            danielle-mustillo Danielle Mustillo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: