Thanks! Works… partially
because it also match if(){} expressions (and it shouldn’t)
what i came up is this pattern:
"open": "^\\s*(if|foreach|while).*:$",
"close": "^\\s*(endif|endforeach|endwhile;$)"
Thing is… while in regexbuddy works just fine, in editor it doesn’t. Most likely i do some escaping wrong. Any idea which is that? Thanks!
Btw, i noticed that if there is an error somewhere in the config file, the plugin stop to works until i restart ST. It’s a bug, a feature or a bit of both?