From 288afe7d4fe0953f5717b0ac85f805f78d96afa4 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sun, 26 Jul 2015 11:56:23 +0200 Subject: [PATCH] Bug 752657 - XML not documenting a class in python Problem looks like to be the improper handling of strings in this case a single quote was not seen as the start of a string and thus the double quote was mistreated. --- src/pyscanner.l | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pyscanner.l b/src/pyscanner.l index 8332a362456..f6638374be6 100644 --- a/src/pyscanner.l +++ b/src/pyscanner.l @@ -1278,6 +1278,12 @@ STARTDOCSYMS "##" initTriSingleQuoteBlock(); BEGIN(TripleComment); } + "'" { + g_stringContext=YY_START; + current->initializer+="'"; + g_copyString=¤t->initializer; + BEGIN( SingleQuoteString ); + } "\"" { g_stringContext=YY_START; current->initializer+="\"";