Repository navigation
Expand file tree
/
Copy pathreStructuredText.plist
More file actions
350 lines (344 loc) · 10.5 KB
/
Copy pathreStructuredText.plist
File metadata and controls
350 lines (344 loc) · 10.5 KB
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
Pull requests
Issues
Marketplace
Explore
@chipbrock
EricFromCanada
/
byte-bucket
Watch
3
Star 4
Fork 5
Code
Issues
Pull requests
Actions
Security
Insights
master
byte-bucket/bbedit/reStructuredText.plist
Go to file
@EricFromCanada
EricFromCanada update links, mention Homebrew
Latest commit 5a1418e on Feb 23
History
1 contributor
322 lines (304 sloc) 10 KB
Raw Blame
<?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 reStructuredText files.
Eric Knibbe
Version 2.1.1
Released under a Creative Commons Attribution-ShareAlike License:
<http://creativecommons.org/licenses/by-sa/4.0/>
Parses each section title as a function name so they show up in the
function popup. Will also highlight directives, directive options, field
markers, roles, substitutions, references, targets, interpreted text, and
comment blocks, plus URLs in BBEdit 11 / TextWrangler 5 or later.
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.
Recommended settings for reStructuredText in Preferences > Languages:
- auto-indent: enabled
- auto-expand tabs: enabled
- soft wrap text: disabled
- tab width: 3 spaces
- ensure file ends with line break: enabled
- strip trailing whitespace: enabled
- page guide: 80 characters
Known issues:
- CLMs can't indent function popup entries nor nest sidebar fold markers
- directives aren't highlighted as keywords if a space comes before the ::
- comments starting on the file's 1st or 2nd line often aren't highlighted
- can't highlight comments sharing a line with or directly following
directives due to backtracking limitations in regular expressions
- requires all lines of a comment to use the same padding sequence,
e.g. doesn't highlight a comment whose first line starts with a space and
subsequent lines start with a tab, which is still acceptable indentation
- roles directly following inline markup delimiters for emphasis or literal
text need an escaped space in front to be highlighted
Feedback is welcome. <https://ericfromcanada.github.io/>
-->
<dict>
<key>BBEditDocumentType</key>
<string>CodelessLanguageModule</string>
<key>BBLMLanguageDisplayName</key>
<string>reStructuredText</string>
<key>BBLMLanguageCode</key>
<string>reST</string>
<key>BBLMSuffixMap</key>
<array>
<dict>
<key>BBLMLanguageSuffix</key>
<string>.rst</string>
</dict>
</array>
<key>BBLMReferenceSearchURLTemplate</key>
<string>http://www.sphinx-doc.org/en/stable/search.html?q=__SYMBOLNAME__</string>
<key>BBLMCommentLineDefault</key>
<string>.. </string>
<key>BBLMColorsSyntax</key>
<true/>
<key>BBLMScansFunctions</key>
<true/>
<key>BBLMCanSpellCheckCodeRuns</key>
<true/>
<key>BBLMIsCaseSensitive</key>
<false/>
<key>Language Features</key>
<dict>
<key>Identifier and Keyword Character Class</key>
<string>-\w.:</string>
<key>String Pattern</key>
<string><![CDATA[(?x:
(?# footnote/citation reference)
(?<=[-([{<:"'/\s])\[
(\#?(?>[a-z0-9]([-._+:](?=[a-z0-9]))?)+|[#*])
\]_(?=(?P<end>[-)\]}>:;.,"'!?/\s\\]))
| (?# substitution)
(?<=[-([{<:"'/\s])\|(?![|\s])
(?>\\\\|[\s\\]\||\|(?!(?P>end)|__?(?P>end))|\r(?![ \t+=-]*$)|[^|\r])+
\|_{0,2}(?=(?P>end))
| (?# field marker/directive option)
(^[ \t]*|(?<=:)[ \t]+):(?!\s)
(?>\\\\|\\:|[^:\r])+
(?<!\s):(?=\s|$)
| (?# role)
(?<=[-([{<:"'/\s]|[^\s]`)(?P<role>:
(?>[a-z0-9]([-._+:](?=[a-z0-9]))?)+
:)(?=`[^`\s])
| (?# inline internal target)
(?<=[-([{<:"'/\s])_`(?!\s)
(?>\\\\|[\s\\]`|`(?!(?P>end))|\r(?![ \t]*$)|[^`\r])+
`(?=(?P>end))
| (?# interpreted text/phrase reference)
(?<=[-([{<:"'/\s])`(?![`\s])
(?>\\\\|\\[ \t]|[ \t\\]`|`(?!(?P>end)|__?(?P>end))|\r(?![ \t]*$)|[^`\r])+
`(?(?=:)((?P>role)(?=(?P>end)))?|_{0,2}(?=(?P>end)))
| (?# hyperlink reference)
(?<=[-([{<:"'/\s])\b
(?>[a-z0-9]([-._+:](?=[a-z0-9]))?)+
__?(?=(?P>end))
| (?# footnote/citation target)
(?<=\.\.)[ \t]+\[
(\#?(?>[a-z0-9]([-._+:](?=[a-z0-9]))?)+|[#*])
\](?=\s)
| (?# hyperlink target)
(^[ \t]*__[ \t]+|
(?<=\.\.)[ \t]+_(?(?=`)
`(?>\\\\|\\`|`(?![ \t]*:\s)|[^`\r])+`
|(_|(?>\\\\|\\:|:(?!:\s)|[^:\r])+))
(?<!\s)\ ?:(?=\s))
)]]></string>
<key>Comment Pattern</key>
<string><![CDATA[(?x:
(\A | ^[ \t]*\r) (
[ \t]*\.\.[ \t]*\r[ \t]*$ | (
(?P<pad>[ \t]*)\.\. (
[ \t]+ (
\b(?>[a-z0-9]([-._+:](?=[a-z0-9]))?)+
(?(?=\ ?:)
\ ?:((:(?!\s) | [^:])[^\r]* | $)
| ([^a-z0-9][^\r]* | $)
) | [^\w[|\s][^\r]*
) | [ \t]*
) (
\r (
[ \t]*
| (?P=pad)[ \t]+[^\s][^\r]*
)
)*(\r(?=(?P=pad)\.\.|[ \t]*$) | \Z)
)+
)
)]]></string>
<key>Number Pattern</key><!-- URLs and domain directives -->
<string><![CDATA[(?x:
\b[a-z][\w.+-]+:(?:/{1,3}|[?+]?[a-z0-9%])[^\s()<>]+[^\s`!()\[\]{};:'".,<>?](::)?
)]]></string>
<key>Keyword Pattern</key><!-- enumerated list markers -->
<string><![CDATA[(?x:
^\s*(([-*+•‣⁃])|(?P<enum>[0-9]+|[ivxlcdm]+|[a-z]|\#)[.)]|\((?P>enum)\))[ \t]
)]]></string>
<key>Function Pattern</key>
<string><![CDATA[(?x:
(?P<function>
^(?!\.\.\s)\ ?(?P<function_name>\S[^\r]+)\r
^(?P<bar>[-=`:.'"~^_*+#!$%&(),/;<>?@[\]\{|}])(?P=bar)+\s*$
(?s).*?(?-s)
)
(?=
(^\s*\r((?P<overline>[-=`:.'"~^_*+#!$%&(),/;<>?@[\]\{|}])(?P=overline)+\s*\r)?
^(?!\.\.\s)\ ?\S[^\r]+\r
^(?P<nextbar>[-=`:.'"~^_*+#!$%&(),/;<>?@[\]\{|}])(?P=nextbar)+\s*$
) | (?-m)$
)
)]]></string>
<key>Skip Pattern</key>
<string><![CDATA[(?x:
(?P>string) |
(?P>comment) |
(?P>number)
)]]></string>
</dict>
<key>BBLMKeywords</key>
<array>
<dict>
<key>RunKind</key>
<string>com.barebones.bblm.preprocessor</string>
<key>Keywords</key>
<array>
<string>..</string>
<string>::</string>
</array>
</dict>
<dict>
<key>RunKind</key>
<string>com.barebones.bblm.keyword</string><!-- reStructuredText directives -->
<key>Keywords</key>
<array>
<string>attention::</string>
<string>caution::</string>
<string>danger::</string>
<string>error::</string>
<string>important::</string>
<string>note::</string>
<string>tip::</string>
<string>hint::</string>
<string>warning::</string>
<string>admonition::</string>
<string>sidebar::</string>
<string>topic::</string>
<string>line-block::</string><!-- deprecated -->
<string>parsed-literal::</string>
<string>code::</string>
<string>math::</string>
<string>rubric::</string>
<string>epigraph::</string>
<string>highlights::</string>
<string>pull-quote::</string>
<string>compound::</string>
<string>container::</string>
<!-- <string>questions::</string> --><!-- future -->
<!-- <string>qa::</string> --><!-- alias -->
<!-- <string>faq::</string> --><!-- alias -->
<string>table::</string>
<string>csv-table::</string>
<string>list-table::</string>
<string>image::</string>
<string>figure::</string>
<string>contents::</string>
<string>sectnum::</string>
<string>section-numbering::</string><!-- alias -->
<string>header::</string>
<string>footer::</string>
<!-- <string>footnotes::</string> --><!-- future -->
<!-- <string>citations::</string> --><!-- future -->
<string>target-notes::</string>
<string>meta::</string>
<!-- <string>imagemap::</string> --><!-- future -->
<string>raw::</string>
<string>include::</string>
<string>replace::</string>
<string>unicode::</string>
<string>class::</string>
<string>role::</string>
<string>default-role::</string>
<string>title::</string>
<string>date::</string>
<string>restructuredtext-test-directive::</string>
</array>
</dict>
<dict>
<key>RunKind</key>
<string>com.barebones.bblm.predefined-symbol</string><!-- Sphinx directives -->
<key>Keywords</key>
<array>
<string>acks::</string><!-- undocumented -->
<string>centered::</string><!-- deprecated -->
<string>code-block::</string>
<string>codeauthor::</string>
<string>cssclass::</string><!-- old -->
<string>default-domain::</string>
<string>deprecated::</string>
<string>describe::</string><!-- old -->
<string>envvar::</string>
<string>glossary::</string>
<string>highlight::</string>
<string>highlightlang::</string><!-- old -->
<string>hlist::</string>
<string>index::</string>
<string>literalinclude::</string>
<string>moduleauthor::</string><!-- undocumented -->
<string>object::</string>
<string>only::</string>
<string>option::</string>
<string>cmdoption::</string><!-- old -->
<string>productionlist::</string>
<string>program::</string>
<string>rst-class::</string>
<string>sectionauthor::</string>
<string>seealso::</string>
<string>sourcecode::</string><!-- old -->
<string>tabularcolumns::</string>
<string>toctree::</string>
<string>versionadded::</string>
<string>versionchanged::</string>
<string>module::</string>
<string>currentmodule::</string>
<string>data::</string>
<string>exception::</string>
<string>function::</string>
<string>attribute::</string>
<string>method::</string>
<string>staticmethod::</string>
<string>classmethod::</string>
<string>decorator::</string>
<string>decoratormethod::</string>
<string>member::</string>
<string>macro::</string>
<string>type::</string>
<string>var::</string>
<string>namespace::</string>
<string>directive::</string>
<string>automodule::</string>
<string>autoclass::</string>
<string>autoexception::</string>
<string>autofunction::</string>
<string>autodata::</string>
<string>automethod::</string>
<string>autoattribute::</string>
<string>autosummary::</string>
<string>testsetup::</string>
<string>testcleanup::</string>
<string>doctest::</string>
<string>testcode::</string>
<string>testoutput::</string>
<string>graphviz::</string>
<string>graph::</string>
<string>digraph::</string>
<string>inheritance-diagram::</string>
<string>ifconfig::</string>
<string>todo::</string>
<string>todolist::</string>
</array>
</dict>
</array>
</dict>
</plist>
© 2021 GitHub, Inc.
Terms
Privacy
Security
Status
Docs
Contact GitHub
Pricing
API
Training
Blog
About