From 59fdba0dd1e3765a2f53b222fdc9455114f720b1 Mon Sep 17 00:00:00 2001 From: albert-github Date: Wed, 29 Jul 2015 13:40:31 +0200 Subject: Bug 648865 - PYTHON: stops processing the file after encountering \"""" Proper handling of escaped character inside a triple quoted string (""" and ''') --- src/pyscanner.l | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pyscanner.l b/src/pyscanner.l index 02d5b67..99650bd 100644 --- a/src/pyscanner.l +++ b/src/pyscanner.l @@ -1384,13 +1384,16 @@ STARTDOCSYMS "##" docBlock += yytext; } } - [^"'\n \t]+ { + [^"'\n \t\\]+ { docBlock += yytext; } \n { incLineNr(); docBlock += yytext; } + \\. { // espaced char + docBlock += yytext; + } . { docBlock += yytext; } -- cgit v0.12