From e9bdf04e834f1d7a41e9eb48c4e6064498450b2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rene=CC=81=20Schwaiger?= Date: Sun, 29 Mar 2015 17:01:55 +0200 Subject: [PATCH] Fix folding markers for sections Before this commit sections in a LaTeX command were not properly recognized as foldable if they contained curly braces. For example: TextMate did not display a folding marker for the valid LaTeX code `\chapter{\textbf{Hi}}`. --- Preferences/Folding - LaTeX.tmPreferences | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Preferences/Folding - LaTeX.tmPreferences b/Preferences/Folding - LaTeX.tmPreferences index 7b9ddf13..0f2b545b 100644 --- a/Preferences/Folding - LaTeX.tmPreferences +++ b/Preferences/Folding - LaTeX.tmPreferences @@ -31,7 +31,7 @@ \section*{A Section Not Included in the Index} ) - \\(?:part|chapter|(?:sub){0,2}section|(?:sub){0,1}paragraph)\*?\{[^\{]*\} + \\(?:part|chapter|(?:sub){0,2}section|(?:sub){0,1}paragraph)\*?\{.*\} foldingStartMarker \\begin\{.*\}|%.*\(fold\)\s*$ foldingStopMarker