Skip to content

Commit 1ab4dc0

Browse files
committed
first attempt
1 parent 92fece3 commit 1ab4dc0

File tree

2 files changed

+57
-7
lines changed

2 files changed

+57
-7
lines changed

BunchLanguage.plist

Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,75 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<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+
49
<dict>
10+
<!-- Some required stuff. Inclyding a unique ID. -->
511
<key>BBEditDocumentType</key>
612
<string>CodelessLanguageModule</string>
713
<key>BBLMLanguageDisplayName</key>
814
<string>Bunch</string>
915
<key>BBLMLanguageCode</key>
1016
<string>bunh</string>
17+
18+
19+
<!-- File Name to apply to -->
1120
<key>BBLMSuffixMap</key>
1221
<array>
1322
<dict>
1423
<key>BBLMLanguageSuffix</key>
1524
<string>.bunch</string>
1625
</dict>
17-
<dict>
18-
<key>BBLMLanguageSuffix</key>
19-
<string>.snippets</string>
20-
</dict>
2126
</array>
2227
<key>BBLMPreferredFilenameExtension</key>
2328
<string>bunch</string>
29+
30+
<!-- Spell Check? -->
2431
<key>BBLMCanSpellCheckCodeRuns</key>
2532
<true/>
33+
34+
<!-- Should syntax be coloured?,
35+
Obviously the answer is yes. -->
2636
<key>BBLMColorsSyntax</key>
2737
<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>
2851
<key>BBLMCommentLineDefault</key>
2952
<string>//</string>
3053
<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+
3474
</dict>
3575
</plist>

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
# bbeditLanguageModules
22
Custom BBedit Language Modules
3+
4+
## Requirements
5+
- BBedit v12 <
6+
7+
## About
8+
Some custom language modules for BBedit.
9+
Mostly just to make modifying or viewing files easier.
10+
Modules include:
11+
- BunchLanguage for use with [Bunch.app files](https://bunchapp.co)
12+
Makes your editing of Bunch a touch easier to read.

0 commit comments

Comments
 (0)