Skip to content

Commit 9a31a23

Browse files
committed
initial checkin
- moved here from `abstools`, original location was in the `bbedit/` subdirectory.
0 parents  commit 9a31a23

File tree

3 files changed

+196
-0
lines changed

3 files changed

+196
-0
lines changed

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Rudolf Schlatte
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# A simple Codeless Language Module for BBEdit
2+
3+
The file `abs.plist` in this directory contains support for ABS for
4+
the BBEdit editor (http://www.barebones.com/products/bbedit/), running
5+
on Mac OS X by BareBones Software. See the Codeless Language Module
6+
Reference at http://www.barebones.com/support/develop/clm.html.
7+
8+
To activate ABS support, open the Languages tab in the BBEdit
9+
Preferences. Click on the "Language Modules" link and copy the file
10+
`abs.plist` into the folder that opens (`~/Library/Application
11+
Support/BBEdit/Language Modules/`).

abs.plist

+164
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
3+
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
4+
<plist version="1.0">
5+
6+
<!-- Codeless Language Module for ABS.
7+
8+
This adds support for ABS to BBEdit and TextWrangler, editors
9+
running on Mac OS X. See the Codeless Language Module
10+
Reference at
11+
(http://www.barebones.com/support/develop/clm.html) -->
12+
13+
<!-- Place this file in the Application Support/BBEdit/Language
14+
Modules resp. Application Support/TextWrangler/Language Modules
15+
directory of either your Library or Dropbox folder. -->
16+
17+
<dict>
18+
<key>BBEditDocumentType</key>
19+
<string>CodelessLanguageModule</string>
20+
21+
<key>BBLMLanguageDisplayName</key>
22+
<string>ABS</string>
23+
<key>BBLMLanguageCode</key>
24+
<string>ABS!</string>
25+
26+
<key>BBLMSuffixMap</key>
27+
<array>
28+
<dict>
29+
<key>BBLMLanguageSuffix</key>
30+
<string>.abs</string>
31+
</dict>
32+
</array>
33+
34+
<key>BBLMColorsSyntax</key>
35+
<true/>
36+
37+
<key>BBLMSupportsTextCompletion</key>
38+
<true/>
39+
<key>BBLMIsCaseSensitive</key>
40+
<true/>
41+
<key>BBLMScansFunctions</key>
42+
<true/>
43+
44+
<key>BBLMKeywordList</key>
45+
<!-- The canonical list of keywords can be found in
46+
frontend/src/abs/frontend/antlr/ABS.g4 -->
47+
<array>
48+
<string>module</string>
49+
<string>import</string>
50+
<string>export</string>
51+
<string>from</string>
52+
<string>class</string>
53+
<string>interface</string>
54+
<string>exception</string>
55+
<string>extends</string>
56+
<string>data</string>
57+
<string>def</string>
58+
<string>implements</string>
59+
<string>delta</string>
60+
<string>stateupdate</string>
61+
<string>objectupdate</string>
62+
<string>classupdate</string>
63+
<string>uses</string>
64+
<string>adds</string>
65+
<string>modifies</string>
66+
<string>removes</string>
67+
<string>hasField</string>
68+
<string>hasMethod</string>
69+
<string>hasInterface</string>
70+
<string>productline</string>
71+
<string>features</string>
72+
<string>after</string>
73+
<string>when</string>
74+
<string>product</string>
75+
<string>while</string>
76+
<string>return</string>
77+
<string>skip</string>
78+
<string>get</string>
79+
<string>null</string>
80+
<string>await</string>
81+
<string>if</string>
82+
<string>then</string>
83+
<string>else</string>
84+
<string>try</string>
85+
<string>catch</string>
86+
<string>finally</string>
87+
<string>suspend</string>
88+
<string>duration</string>
89+
<string>new</string>
90+
<string>movecogto</string>
91+
<string>this</string>
92+
<string>core</string>
93+
<string>original</string>
94+
<string>case</string>
95+
<string>let</string>
96+
<string>in</string>
97+
<string>local</string>
98+
<string>type</string>
99+
<string>assert</string>
100+
<string>builtin</string>
101+
<string>root</string>
102+
<string>extension</string>
103+
<string>group</string>
104+
<string>opt</string>
105+
<string>oneof</string>
106+
<string>allof</string>
107+
</array>
108+
109+
<key>BBLMPredefinedNameList</key>
110+
<array>
111+
<string>Unit</string>
112+
<string>String</string>
113+
<string>Int</string>
114+
<string>Rat</string>
115+
<string>Bool</string>
116+
<string>True</string>
117+
<string>False</string>
118+
<string>Fut</string>
119+
<string>Exception</string>
120+
</array>
121+
122+
<key>BBLMCommentLineDefault</key>
123+
<string>//</string>
124+
125+
<key>Language Features</key>
126+
<dict>
127+
<key>Identifier and Keyword Character Class</key>
128+
<string>A-Za-z0-9_\?!</string>
129+
130+
<key>Open Block Comments</key>
131+
<string>/*</string>
132+
<key>Close Block Comments</key>
133+
<string>*/</string>
134+
<key>Open Line Comments</key>
135+
<string>//</string>
136+
137+
<key>Open Strings 1</key>
138+
<string>"</string>
139+
<key>Close Strings 1</key>
140+
<string>"</string>
141+
<key>Escape Char in Strings 1</key>
142+
<string>\</string>
143+
<key>End-of-line Ends Strings 1</key>
144+
<true/>
145+
146+
<key>Open Parameter Lists</key>
147+
<string>(</string>
148+
<key>Close Parameter Lists</key>
149+
<string>)</string>
150+
<key>Terminator for Prototypes 1</key>
151+
<string>;</string>
152+
153+
<key>Open Statement Blocks</key>
154+
<string>{</string>
155+
<key>Close Statement Blocks</key>
156+
<string>}</string>
157+
158+
</dict>
159+
</dict>
160+
</plist>
161+
162+
<!-- Local Variables: -->
163+
<!-- mode: nxml -->
164+
<!-- End: -->

0 commit comments

Comments
 (0)