Hello! My name is Viktor. You have a great project ! I would like to support it Review of the code should be as comfortable as possible. This patch adds parenthesis and curly brackets highlight. If you consider it necessary...
I'm sorry. I sent rather incomplete version of the patch. Condition inside the loop must look as follows:
//search bracket open for(count=cursorUp.position()-1;count;count--) { if(str.mid(count,1)==twoBracket&&!x&&filter(count)) break; if(str.mid(count,1)==twoBracket&&x&&filter(count)) x--; if(str.mid(count,1)==oneBracket&&filter(count)) x++; if(str.mid(count,1)=="\n"&&oneBracket==")") // this { count=0; break; } }
Log in to post a comment.
I'm sorry. I sent rather incomplete version of the patch. Condition
inside the loop must look as follows:
//search bracket open
for(count=cursorUp.position()-1;count;count--)
{
if(str.mid(count,1)==twoBracket&&!x&&filter(count))
break;
if(str.mid(count,1)==twoBracket&&x&&filter(count))
x--;
if(str.mid(count,1)==oneBracket&&filter(count))
x++;
if(str.mid(count,1)=="\n"&&oneBracket==")") // this
{
count=0;
break;
}
}