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

Strings Ending in Escaped Backslash are Inproperly Lexed

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Done
    • None
    • 3.0.0, 2.0.17, 2.1.9
    • None
    • None

    Description

      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.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: