|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
3 | 3 | <plist version="1.0"> |
| 4 | + |
| 5 | +<!-- A tiny language to colour some keywords in |
| 6 | + Bunch files to make my life easier. |
| 7 | + Copyright Anthony Arblaster 2023 --> |
| 8 | + |
4 | 9 | <dict> |
| 10 | + <!-- Some required stuff. Inclyding a unique ID. --> |
5 | 11 | <key>BBEditDocumentType</key> |
6 | 12 | <string>CodelessLanguageModule</string> |
7 | 13 | <key>BBLMLanguageDisplayName</key> |
8 | 14 | <string>Bunch</string> |
9 | 15 | <key>BBLMLanguageCode</key> |
10 | 16 | <string>bunh</string> |
| 17 | + |
| 18 | + |
| 19 | + <!-- File Name to apply to --> |
11 | 20 | <key>BBLMSuffixMap</key> |
12 | 21 | <array> |
13 | 22 | <dict> |
14 | 23 | <key>BBLMLanguageSuffix</key> |
15 | 24 | <string>.bunch</string> |
16 | 25 | </dict> |
17 | | - <dict> |
18 | | - <key>BBLMLanguageSuffix</key> |
19 | | - <string>.snippets</string> |
20 | | - </dict> |
21 | 26 | </array> |
22 | 27 | <key>BBLMPreferredFilenameExtension</key> |
23 | 28 | <string>bunch</string> |
| 29 | + |
| 30 | + <!-- Spell Check? --> |
24 | 31 | <key>BBLMCanSpellCheckCodeRuns</key> |
25 | 32 | <true/> |
| 33 | + |
| 34 | + <!-- Should syntax be coloured?, |
| 35 | + Obviously the answer is yes. --> |
26 | 36 | <key>BBLMColorsSyntax</key> |
27 | 37 | <true/> |
| 38 | + |
| 39 | + <!-- Specify some keywords. This isn’t required, either, |
| 40 | + but it provides something to color: --> |
| 41 | + <key>BBLMKeywordList</key> |
| 42 | + <array> |
| 43 | + <string>___</string> |
| 44 | + <string>if</string> |
| 45 | + <string>else</string> |
| 46 | + <string>end</string> |
| 47 | + <string>do</string> |
| 48 | + <string>for</string> |
| 49 | + <string>return</string> |
| 50 | + </array> |
28 | 51 | <key>BBLMCommentLineDefault</key> |
29 | 52 | <string>//</string> |
30 | 53 | <key>Language Features</key> |
31 | | - <dict/> |
32 | | - <key>New item</key> |
33 | | - <string></string> |
| 54 | + <dict> |
| 55 | + <key>Identifier and Keyword Character Class</key> |
| 56 | + <string>A-Za-z0-9_</string> |
| 57 | + <key>Open Line Comments</key> |
| 58 | + <string>//</string> |
| 59 | + <key>Open Strings 1</key> |
| 60 | + <string>"</string> |
| 61 | + <key>Close Strings 1</key> |
| 62 | + <string>"</string> |
| 63 | + <key>Escape Char in Strings 1</key> |
| 64 | + <string>\</string> |
| 65 | + <key>End-of-line Ends Strings 1</key> |
| 66 | + <false/> |
| 67 | + <key>Open Statement Blocks</key> |
| 68 | + <string>{</string> |
| 69 | + <key>Close Statement Blocks</key> |
| 70 | + <string>}</string> |
| 71 | + |
| 72 | + </dict> |
| 73 | + |
34 | 74 | </dict> |
35 | 75 | </plist> |
0 commit comments