-
Notifications
You must be signed in to change notification settings - Fork 480
Open
Description
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
Labels
No labels