Commit 9ae6c459 authored by Ralf Habacker's avatar Ralf Habacker

Fix broken python import when using multi line comments.

Searching for comment end tag should start *after* comment start tag,
otherwise the comment start tag will be interpreted as comment end tag too.

BUG:328055
FIXED-IN:4.11.4
parent 6ead043a
......@@ -213,11 +213,11 @@ bool NativeImportBase::preprocess(QString& line)
delimIntroLen = m_multiLineAltCommentIntro.length();
}
if (pos != -1) {
int endpos = line.indexOf(m_multiLineCommentEnd);
int endpos = line.indexOf(m_multiLineCommentEnd, pos + delimIntroLen);
if (endpos != -1) {
delimEndLen = m_multiLineCommentEnd.length();
} else if (!m_multiLineAltCommentEnd.isEmpty()) {
endpos = line.indexOf(m_multiLineAltCommentEnd);
endpos = line.indexOf(m_multiLineAltCommentEnd, pos + delimIntroLen);
if (endpos != -1)
delimEndLen = m_multiLineAltCommentEnd.length();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment