summaryrefslogtreecommitdiffstats
path: root/src/pyscanner.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2015-07-29 11:40:31 (GMT)
committeralbert-github <albert.tests@gmail.com>2015-07-29 11:40:31 (GMT)
commit59fdba0dd1e3765a2f53b222fdc9455114f720b1 (patch)
tree51883a1495d669895318b4935bd9c19a0ee6426c /src/pyscanner.l
parent31c5aecbec5200bbfe797cfe8e7c0b565717a96f (diff)
downloadDoxygen-59fdba0dd1e3765a2f53b222fdc9455114f720b1.zip
Doxygen-59fdba0dd1e3765a2f53b222fdc9455114f720b1.tar.gz
Doxygen-59fdba0dd1e3765a2f53b222fdc9455114f720b1.tar.bz2
Bug 648865 - PYTHON: stops processing the file after encountering \""""
Proper handling of escaped character inside a triple quoted string (""" and ''')
Diffstat (limited to 'src/pyscanner.l')
-rw-r--r--src/pyscanner.l5
1 files changed, 4 insertions, 1 deletions
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;
}