idank / bashlex

Python parser for bash
GNU General Public License v3.0
558 stars 94 forks source link

"a\\ \n" is not treated the same as "a\\\n" #65

Closed BlankCanvasStudio closed 2 years ago

BlankCanvasStudio commented 2 years ago

The space in between \ and \n causes the tokenizer to not treat the \ as an independent and removable character, like it would if there were no space. Bash treats these as the same so it makes sense for the parser to do so as well