WerWolv / PatternLanguage

The Pattern Language used by the ImHex Hex Editor
https://imhex.werwolv.net
GNU Lesser General Public License v2.1
165 stars 43 forks source link

fix: String terminated with newline assigned wrong line to all tokens after. #121

Open paxcut opened 2 weeks ago

paxcut commented 2 weeks ago

When a newline is encountered by the lexer it has to increase the line number and reset m_lineBegin. String literals that had a newline before closing double quote were not doing that so all subsequent tokens had the wrong line location.