forked from jvanasco/bbedit_mako
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmako.plist
152 lines (127 loc) · 3.63 KB
/
mako.plist
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?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">
<!--
BBEdit codeless language module for Apache configuration files.
Chris Cassell / Jonathan Vanasco
Version 0.0.2
2012.12.06
Released under the MIT license
http://opensource.org/licenses/MIT
Requires BBEdit 8.0 or higher. To install, copy here and relaunch BBEdit.
~/Library/Application Support/BBEdit/Language Modules/
or
Requires TextWrangler 4.0 or higher. To install, copy here and relaunch TextWrangler.
~/Library/Application Support/Text Wrangler/Language Modules/
-->
<dict>
<!-- You must identify the plist as a CLM: -->
<key>BBEditDocumentType</key>
<string>CodelessLanguageModule</string>
<key>BBLMLanguageSuffix</key>
<string>.mako</string>
<!-- You must identify your language: -->
<key>BBLMLanguageCode</key>
<string>MAKO</string>
<key>BBLMLanguageDisplayName</key>
<string>Mako Templating Language</string>
<!-- Not required, but there’s not much point to
a language module if it doesn’t color syntax: -->
<key>BBLMColorsSyntax</key>
<true/>
<key>BBLMScansFunctions</key>
<true/>
<!-- Specify some keywords. This isn’t required, either,
but it provides something to color: -->
<key>BBLMKeywordList</key>
<array>
<!-- control structures -->
<string>if</string>
<string>else</string>
<string>elif</string>
<string>endif</string>
<string>for</string>
<string>endfor</string>
<!-- tags -->
<string>page</string>
<string>include</string>
<string>def</string>
<string>block</string>
<string>namespace</string>
<string>inherit</string>
<string>nsname</string>
<string>call</string>
<string>doc</string>
<string>text</string>
<!-- used in tags -->
<string>name=</string>
<string>file=</string>
<!-- used in tags -->
<string><%</string>
<string>>%</string>
<string>${</string>
</array>
<!-- Specify a comment-out string: -->
<key>BBLMCommentLineDefault</key>
<string>##</string>
<!-- You must specify the character set for
keywords and identifiers. Substitute your own: -->
<key>Language Features</key>
<dict>
<key>Close Block Comments</key>
<string></string>
<key>Close Parameter Lists</key>
<string>)</string>
<key>Close Statement Blocks</key>
<string></string>
<key>Close Strings 1</key>
<string>'</string>
<key>Close Strings 2</key>
<string>"</string>
<key>End-of-line Ends Strings 1</key>
<false/>
<key>End-of-line Ends Strings 2</key>
<false/>
<key>Escape Char in Strings 1</key>
<string>\</string>
<key>Escape Char in Strings 2</key>
<string>\</string>
<key>Identifier and Keyword Characters</key>
<string>0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz^-_./</string>
<key>Open Block Comments</key>
<string></string>
<key>Open Line Comments</key>
<string>#</string>
<key>Open Parameter Lists</key>
<string>(</string>
<key>Open Statement Blocks</key>
<string></string>
<key>Open Strings 1</key>
<string>'</string>
<key>Open Strings 2</key>
<string>"</string>
<key>Prefix for Functions</key>
<string></string>
<key>Prefix for Procedures</key>
<string></string>
<key>Terminator for Prototypes 1</key>
<string></string>
<key>Terminator for Prototypes 2</key>
<string></string>
<key>Function Pattern</key>
<string><![CDATA[(?x:
(?P<function>
(<%)?def[\s](name=['"])?
(?P<function_name>
[a-zA-Z0-9_]+
)
[\s]?
\(
[\w\s=,\*\\'".]*
\)([\s]*['"][^>]*>)?
)
)]]></string>
</dict>
</dict>
</plist>