I'm trying to match a curly bracket in a foldingStopMarker but I can't for my life get it to work. The startmarker works but not the stopmarker. Eg. works { hello } doesntwork { hello } My language is defined as: foldingStartMarker = '\{\s*$'; foldingStopMarker = '^\s*\}'; /Tomas