Problem with folding

Discuss syntax highlighting or submit new syntax files.
Post Reply
UScorp
Posts: 2
Joined: 17 Jan 2011 11:25

Problem with folding

Post by UScorp »

Hi, sorry for my English.

I'm trying to create a custom syntax and I have a problem with folding blocks.

For example, my fold opened with "macro" and closed with "end". In my syntax file I have:
1_Id=macro
1_Begin=
1_End=end
1_EndBefore=
1_Section=
1_NoParentOfId=0
1_NotAlwaysEnded=0
1_ListItem=No

but in code like this:

Code: Select all

1  macro Test1()
2  
3    /* macro Test2() */
4  
5    MyFunc1();
6    MyFunc2();
7    
8  end;
Folding block started not from line 1, it begins with line 3, whatever it commented.
But if I use line comment ("//"), it work normal. What do I wrong?
User avatar
Rickard Johansson
Site Admin
Posts: 6628
Joined: 19 Jul 2006 14:29

Post by Rickard Johansson »

Seems to be a bug. I'll fix it.

Thanks!
User avatar
Rickard Johansson
Site Admin
Posts: 6628
Joined: 19 Jul 2006 14:29

Post by Rickard Johansson »

Hmm... seems it's already fixed in my next version (v7.10) 8)
UScorp
Posts: 2
Joined: 17 Jan 2011 11:25

Post by UScorp »

OK. I'm waiting for new version 7.10.

Thanks.
Post Reply