-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFolding.tmPreferences
38 lines (38 loc) · 1.18 KB
/
Folding.tmPreferences
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?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</string>
<key>scope</key>
<string>source.fortran</string>
<key>settings</key>
<dict>
<key>foldingStartMarker</key>
<string>(?x: # extended mode
^\s* # start of line and some space
(?i: # case insensitive match
(
if.*then # if ... then
|for|do|select\s+case|where|interface # some easy keywords
|module(?!\s*procedure) # module not followed by procedure
|type(?!\s*\() # type but not type(
)
| # ...or...
(
[a-z]*(?<!end)\s*(function|subroutine) # possibly some letters, but not the word end, and a space, then function
)
)
.*$ # anything until the end of the line
)</string>
<key>foldingStopMarker</key>
<string>(?x: # extended mode
^\s* # start of line and some space
(?i:(end)) # the word end, case insensitive
.*$ # anything until the end of the line
)</string>
</dict>
<key>uuid</key>
<string>1BCD42C7-0623-4EE5-A68F-A7A78E02BC53</string>
</dict>
</plist>