Skip to content
Snippets Groups Projects
Commit 90a083e2 authored by marco's avatar marco
Browse files

tiny fix for recent multiline-string highlighting

so much for using literal integers instead of enums

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2405 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 5546b357
Branches
Tags
No related merge requests found
......@@ -95,9 +95,9 @@ void PythonSyntaxHighlighter::highlightBlock(const QString& text_block) {
int string_state=0;
int bs=previousBlockState()==-1 ? 0 : previousBlockState();
if (bs & BLOCKTYPE_MULTILINE_SQ) {
string_state=1;
} else if (bs & BLOCKTYPE_MULTILINE_DQ) {
string_state=2;
} else if (bs & BLOCKTYPE_MULTILINE_DQ) {
string_state=1;
}
PythonTokenizer pt(text_block,string_state);
PythonToken t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment