Skip to content

Commit

Permalink
Fix folding markers for sections
Browse files Browse the repository at this point in the history
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}}`.
  • Loading branch information
sanssecours committed Mar 29, 2015
1 parent 4880061 commit e9bdf04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Preferences/Folding - LaTeX.tmPreferences
Expand Up @@ -31,7 +31,7 @@
\section*{A Section Not Included in the Index}
)
\\(?:part|chapter|(?:sub){0,2}section|(?:sub){0,1}paragraph)\*?\{[^\{]*\}</string>
\\(?:part|chapter|(?:sub){0,2}section|(?:sub){0,1}paragraph)\*?\{.*\}</string>
<key>foldingStartMarker</key>
<string>\\begin\{.*\}|%.*\(fold\)\s*$</string>
<key>foldingStopMarker</key>
Expand Down

0 comments on commit e9bdf04

Please sign in to comment.