From 90a083e211b2a5cd7f10bc616039f999635f3034 Mon Sep 17 00:00:00 2001 From: marco <marco@5a81b35b-ba03-0410-adc8-b2c5c5119f08> Date: Tue, 15 Jun 2010 10:19:12 +0000 Subject: [PATCH] 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 --- modules/gui/src/python_shell/python_syntax_highlighter.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gui/src/python_shell/python_syntax_highlighter.cc b/modules/gui/src/python_shell/python_syntax_highlighter.cc index 39fd6f55b..ba60ac94d 100644 --- a/modules/gui/src/python_shell/python_syntax_highlighter.cc +++ b/modules/gui/src/python_shell/python_syntax_highlighter.cc @@ -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; -- GitLab