[YANGTOOLS-971] Strings Ending in Escaped Backslash are Inproperly Lexed Created: 25/Mar/19  Updated: 26/Mar/19  Resolved: 26/Mar/19

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.0, 2.0.17, 2.1.9

Type: Bug Priority: Low
Reporter: Danielle Mustillo Assignee: Danielle Mustillo
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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.

 


Generated at Wed Feb 07 20:54:49 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.