Skip to content

When I set multiple folding markers, one of them works, why #260

@vijaysridhara

Description

@vijaysridhara

My language has definition like this
scene xyz
....
end game | wait "abc" |jump to "efg"

func xyz
...
end func

block xyz
...
end block
like this..... more .... but only the Scene works, rest of them are marked, but when the first one is clicked they close everything... what is this behavior? below is my regex
Moreover since these are line starts the pattern should take caret ^ at the beginning, which entirely ceases to work, if used.

       e.ChangedRange.SetFoldingMarkers("\bscene\s+[a-zA-Z0-9_]+\b", "\b(end\s+game|wait\s+[a-zA-Z0-9_]+|jump\s+to\s+[a-zA-Z0-9_]+)\b")

        e.ChangedRange.SetFoldingMarkers("\bfunc\s+[a-zA-Z0-9_]+\b", "\bend\s+func\b")

        e.ChangedRange.SetFoldingMarkers("\bblock\s+[a-zA-Z0-9_]+\b", "\bend\s+block\b")

        e.ChangedRange.SetFoldingMarkers("\bnavmenu\s+[a-zA-Z0-9_]+\b", "\bend\s+navmenu\b")

        e.ChangedRange.SetFoldingMarkers("\bmenu\s+[a-zA-Z0-9_]+\b", "\bend\s+menu\b")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions