Skip to content

Commit

Permalink
Bug 648865 - PYTHON: stops processing the file after encountering \""""
Browse files Browse the repository at this point in the history
Proper handling of escaped character inside a triple quoted string (""" and ''')
  • Loading branch information
albert-github committed Jul 29, 2015
1 parent 31c5aec commit 59fdba0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pyscanner.l
Expand Up @@ -1384,13 +1384,16 @@ STARTDOCSYMS "##"
docBlock += yytext;
}
}
[^"'\n \t]+ {
[^"'\n \t\\]+ {
docBlock += yytext;
}
\n {
incLineNr();
docBlock += yytext;
}
\\. { // espaced char
docBlock += yytext;
}
. {
docBlock += yytext;
}
Expand Down

0 comments on commit 59fdba0

Please sign in to comment.