Permalink
Browse files

Bug 648865 - PYTHON: stops processing the file after encountering \""""

Proper handling of escaped character inside a triple quoted string (""" and ''')
  • Loading branch information...
albert-github committed Jul 29, 2015
1 parent 31c5aec commit 59fdba0dd1e3765a2f53b222fdc9455114f720b1
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/pyscanner.l
View
@@ -1384,13 +1384,16 @@ STARTDOCSYMS "##"
docBlock += yytext;
}
}
[^"'\n \t]+ {
[^"'\n \t\\]+ {
docBlock += yytext;
}
\n {
incLineNr();
docBlock += yytext;
}
\\. { // espaced char
docBlock += yytext;
}
. {
docBlock += yytext;
}

0 comments on commit 59fdba0

Please sign in to comment.