-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathLiquid.plist
181 lines (175 loc) · 4.75 KB
/
Liquid.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<?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 / TextWrangler codeless language module for Liquid template files.
Eric Knibbe
Version 1.3
Released under a Creative Commons Attribution-ShareAlike License:
<http://creativecommons.org/licenses/by-sa/4.0/>
Highlights only markup between Liquid delimiters, marking everything else as
comments. Supports keywords added in Liquid 5.0.0.
Requires BBEdit 11.6 / TextWrangler 5.5 or later. To install, copy to either:
~/Library/Application Support/BBEdit/Language Modules/
~/Library/Application Support/TextWrangler/Language Modules/
and relaunch BBEdit or TextWrangler.
Feedback is welcome. <https://ericfromcanada.github.io/>
-->
<dict>
<key>BBEditDocumentType</key>
<string>CodelessLanguageModule</string>
<key>BBLMLanguageDisplayName</key>
<string>Liquid</string>
<key>BBLMLanguageCode</key>
<string>lqtl</string>
<key>BBLMSuffixMap</key>
<array>
<dict>
<key>BBLMLanguageSuffix</key>
<string>.liquid</string>
</dict>
</array>
<key>BBLMReferenceSearchURLTemplate</key>
<string>https://shopify.github.io/liquid/filters/__SYMBOLNAME__/</string>
<key>BBLMCommentPrefixDefault</key>
<string>{% comment %}</string>
<key>BBLMCommentSuffixDefault</key>
<string>{% endcomment %}</string>
<key>BBLMColorsSyntax</key>
<true/>
<key>BBLMScansFunctions</key>
<false/>
<key>BBLMCanSpellCheckCodeRuns</key>
<false/>
<key>BBLMIsCaseSensitive</key>
<false/>
<key>Language Features</key>
<dict>
<key>Identifier and Keyword Character Class</key>
<string>\w</string>
<key>Comment Pattern</key>
<string><![CDATA[(?sx:
(?:\A|-?[%}]})
.*?(?:{[{%]-?|\Z) (?# between delimiters) |
(?<=\braw)\s*-?%}
.*?{%-?\s*(?=endraw\b) (?# raw block) |
(?<=\bcomment)\s*-?%}
.*?{%-?\s*(?=endcomment\b) (?# block comment) |
\#.*?(?=$|-?[}%]}) (?# inline comment)
)]]></string>
<key>String Pattern</key>
<string><![CDATA[(?sx:
"[^"]*" (?# double quote) |
'[^']*' (?# single quote)
)]]></string>
<key>Number Pattern</key>
<string><![CDATA[(?x:
(?<![\w-])-?(?:\d+\.\d+|\d+)
)]]></string>
<key>Keyword Pattern</key>
<string><![CDATA[(?x:
(?<={%|%-)\s*\b
(?!comment|raw|break|continue)
\w+\b (?# tag names) |
(?<=\|)\s*\w+\b (?# filters) |
\.\.?|[[\]()] (?# punctuation)
)]]></string>
<key>Skip Pattern</key>
<string><![CDATA[(?x:
(?P>comment) |
(?P>string) |
(?P>number)
)]]></string>
</dict>
<key>BBLMKeywords</key>
<array>
<dict>
<key>RunKind</key>
<string>com.barebones.bblm.preprocessor</string>
<key>Keywords</key>
<array>
<string>comment</string>
<string>endcomment</string>
<string>raw</string>
<string>endraw</string>
</array>
</dict>
<dict>
<key>RunKind</key>
<string>com.barebones.bblm.variable</string>
<key>Keywords</key>
<array>
<string>true</string>
<string>false</string>
<string>nil</string>
<string>empty</string>
<string>blank</string>
</array>
</dict>
<dict>
<key>RunKind</key>
<string>com.barebones.bblm.keyword</string>
<key>Keywords</key>
<array>
<string>and</string>
<string>or</string>
<string>contains</string>
<string>if</string>
<string>endif</string>
<string>unless</string>
<string>endunless</string>
<string>elsif</string>
<string>else</string>
<string>case</string>
<string>endcase</string>
<string>when</string>
<string>for</string>
<string>endfor</string>
<string>in</string>
<string>ifchanged</string>
<string>endifchanged</string>
<string>cycle</string>
<string>tablerow</string>
<string>endtablerow</string>
<string>assign</string>
<string>capture</string>
<string>endcapture</string>
<string>increment</string>
<string>decrement</string>
<string>include</string>
<string>render</string>
<string>with</string>
<string>as</string>
<string>liquid</string>
<string>echo</string>
<string>first</string>
<string>last</string>
<string>size</string>
<string>length</string>
<string>index</string>
<string>index0</string>
<string>rindex</string>
<string>rindex0</string>
<string>row</string>
<string>col</string>
<string>col0</string>
<string>col_first</string>
<string>col_last</string>
</array>
</dict>
<dict>
<key>RunKind</key>
<string>com.barebones.bblm.predefined-symbol</string>
<key>Keywords</key>
<array>
<string>break</string>
<string>continue</string>
<string>reversed</string>
<string>forloop</string>
<string>parentloop</string>
<string>tablerowloop</string>
</array>
</dict>
</array>
</dict>
</plist>