Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Preferences/Folding Patterns.tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Folding Patterns</string>
<key>scope</key>
<string>source.haskell</string>
<key>settings</key>
<dict>
<key>foldingIndentedBlockStart</key>
<string>(?x) (?# Largely taken from the existing indentation rules )
(^data)
| (^.*(=|\bdo|\bwhere|\bthen|\belse|\bof)\s*$)
| (^.*\bif(?!.*\bthen\b.*\belse\b.*).*$)</string>
<key>foldingIndentedBlockIgnore</key>
<string>^\s*$</string>
</dict>
<key>uuid</key>
<string>BF6EAE3B-362F-4C54-8092-BA74F253C777</string>
</dict>
</plist>