Menu

#1 brackets highlight

open
nobody
None
5
2010-05-27
2010-05-27
No

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...

Discussion

  • Viktor Rodionov

    Viktor Rodionov - 2010-05-27
     
  • Viktor Rodionov

    Viktor Rodionov - 2010-05-29

    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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.