jamalsenouci / sublimetext-syntaxfold

Sublime Text Plugin that provides a configurable command and popup for folding code based on syntax
MIT License
40 stars 6 forks source link

*--#[ and *--#] region markers not working #9

Closed benruijl closed 9 years ago

benruijl commented 9 years ago

When I define the following region

    {
        "endMarker": "*--#]",
        "name": "FORM",
        "startMarker": "*--#["
    }

I cannot fold.

jamalsenouci commented 9 years ago

Hi,

This is happening because your markers contain special characters so you need to escape them if you use the following code then it should fold as expected: { "endMarker": "\--#\]", "name": "test", "startMarker": "\--#\[" }

benruijl commented 9 years ago

Thanks. This fixes it!