Page 1 of 1

Why last block (self closing) not folded

Posted: 11.02.2016 16:26
by checkid
Hi
There seems to be another thing which I am unable to make it work.
In the rules, I have a "Range Start" block type with the "Self Closing Range" & "Display in Syntax Tree" checked.

In the settings for Tree/Map, "Auto Synchronize" and "Auto Expand" are checked.

With this setting, when I click inside the editor in the last "Self Closing Range" it doesn't synchronize itself with the Syntax tree... rather collapses the tree completely.

How can I fix this?

Thx & Regards.

Posted: 11.02.2016 17:23
by Alexey
Send me lexer file, make it by ExLexer addon... and sample file..

Posted: 12.02.2016 09:53
by Alexey
It is simple: tree not synchred with last item, as last item not closed
(also see block not folded)
- set flag for rule: /Close block at end of text/

Posted: 12.02.2016 11:04
by checkid
Hi Alexey,
I tried with the that option /Close block at end of text/, before. But this gives me a tree like below.

Code: Select all

+-- declaration:
    +-- Before
        +-- before.sample.10:
        +-- before.sample.20:
            +-- Detail
                +-- detail.5:
                +-- detail.10:
                    +-- functions:
                        +-- do.something()
That is because each section stops at the start of next section and there is no delimitation.
The tree, I am creating is like this.

Code: Select all

+-- declaration:
+-- Before
    +-- before.sample.10:
    +-- before.sample.20:
+-- Detail
    +-- detail.5:
    +-- detail.10:
+-- functions:
    +-- do.something()
Hope there is someway way to fix this.

Regards,

Posted: 12.02.2016 11:30
by Alexey
Change group for rules-
Detail -- \Detail
Before -- \Before

Posted: 12.02.2016 12:32
by checkid
Adding the \ did the trick. Thx.