You can use foldingStartMarker and foldingStopMarker to indicate folds on TextMate.
To define a block that starts with {as the last non-spatial character in the string and stops with} as the first non-spatial character in the string, we can use the following patterns:
foldingStartMarker = '\{\s*$'; foldingStopMarker = '^\s*\}';
pressing the F1 key resets the existing code folds.
Link: http://manual.macromates.com/en/navigation_overview#collapsing_text_blocks_foldings
source share