forked from 0xced/otx-bblm
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Allow tab ('\t') as whitespace indicating function implementati…
…on section. Also: add BBEdit SDK for ease-of-building.
- Loading branch information
Showing
43 changed files
with
11,204 additions
and
12 deletions.
There are no files selected for viewing
184 changes: 184 additions & 0 deletions
184
BBEdit SDK/Codeless Examples/C++CodelessLanguageModule.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,184 @@ | ||
<?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"> | ||
<dict> | ||
<key>BBEditDocumentType</key> | ||
<string>CodelessLanguageModule</string> | ||
<key>BBLMColorsSyntax</key> | ||
<true/> | ||
<key>BBLMIsCaseSensitive</key> | ||
<true/> | ||
<key>BBLMKeywordList</key> | ||
<array> | ||
<string>__machdl</string> | ||
<string>__pasobj</string> | ||
<string>and</string> | ||
<string>and_eq</string> | ||
<string>asm</string> | ||
<string>auto</string> | ||
<string>bitand</string> | ||
<string>bitor</string> | ||
<string>bool</string> | ||
<string>break</string> | ||
<string>case</string> | ||
<string>catch</string> | ||
<string>char</string> | ||
<string>class</string> | ||
<string>compl</string> | ||
<string>const</string> | ||
<string>const_cast</string> | ||
<string>continue</string> | ||
<string>default</string> | ||
<string>delete</string> | ||
<string>do</string> | ||
<string>double</string> | ||
<string>dynamic_cast</string> | ||
<string>else</string> | ||
<string>enum</string> | ||
<string>explicit</string> | ||
<string>export</string> | ||
<string>extern</string> | ||
<string>false</string> | ||
<string>float</string> | ||
<string>for</string> | ||
<string>friend</string> | ||
<string>goto</string> | ||
<string>if</string> | ||
<string>inherited</string> | ||
<string>inline</string> | ||
<string>int</string> | ||
<string>long</string> | ||
<string>mutable</string> | ||
<string>namespace</string> | ||
<string>new</string> | ||
<string>not</string> | ||
<string>not_eq</string> | ||
<string>operator</string> | ||
<string>or</string> | ||
<string>or_eq</string> | ||
<string>pascal</string> | ||
<string>private</string> | ||
<string>protected</string> | ||
<string>public</string> | ||
<string>register</string> | ||
<string>reinterpret_cast</string> | ||
<string>return</string> | ||
<string>short</string> | ||
<string>signed</string> | ||
<string>sizeof</string> | ||
<string>static</string> | ||
<string>static_cast</string> | ||
<string>struct</string> | ||
<string>switch</string> | ||
<string>template</string> | ||
<string>this</string> | ||
<string>throw</string> | ||
<string>true</string> | ||
<string>try</string> | ||
<string>typedef</string> | ||
<string>typeid</string> | ||
<string>typename</string> | ||
<string>union</string> | ||
<string>unsigned</string> | ||
<string>using</string> | ||
<string>virtual</string> | ||
<string>void</string> | ||
<string>volatile</string> | ||
<string>wchar_t</string> | ||
<string>while</string> | ||
<string>xor</string> | ||
<string>xor_eq</string> | ||
</array> | ||
<key>BBLMLanguageCode</key> | ||
<string>CC++</string> | ||
<key>BBLMLanguageDisplayName</key> | ||
<string>Codeless C++ Language Module</string> | ||
<key>BBLMScansFunctions</key> | ||
<true/> | ||
<key>Language Features</key> | ||
<dict> | ||
<key>Comment Pattern</key> | ||
<string>(?x: | ||
(?> // .* $ ) | | ||
(?> /\* (?s:.*?) (?: \*/ | \z ) ) | ||
)</string> | ||
<key>Function Pattern</key> | ||
<string>(?x: | ||
(?P<function> | ||
(?P<function_name> | ||
(?> _* [A-Za-z] [A-Za-z0-9_]* ) | ||
(?: | ||
(?: | ||
(?> | ||
(?> \s+ ) | (?P>comment) | (?P>string) | ||
) | ||
)* | ||
:: | ||
(?: | ||
(?> | ||
(?> \s+ ) | (?P>comment) | (?P>string) | ||
) | ||
)* | ||
~? _* [A-Za-z] [A-Za-z0-9_]* | ||
)? | ||
) | ||
(?: | ||
(?> | ||
(?> \s+ ) | (?P>comment) | (?P>string) | ||
) | ||
)* | ||
(?P<parens> | ||
\( | ||
(?: | ||
(?> | ||
(?> [^'"()]+ ) | (?: / (?![/*]) ) | (?P>comment) | (?P>string) | (?P>parens) | ||
) | ||
)* | ||
\) | ||
) | ||
(?: | ||
(?> | ||
(?> \s+ ) | (?P>comment) | (?P>string) | ||
) | ||
)* | ||
(?: | ||
: | ||
(?: | ||
(?> | ||
(?> [^'"{]+ ) | (?: / (?![/*]) ) | (?P>comment) | (?P>string) | ||
) | ||
)* | ||
)? | ||
(?P<braces> | ||
{ | ||
(?: | ||
(?> | ||
(?> [^'"{}]+ ) | (?: / (?![/*]) ) | (?P>comment) | (?P>string) | (?P>braces) | ||
) | ||
)* | ||
} | ||
) | ||
) | ||
)</string> | ||
<key>Identifier and Keyword Character Class</key> | ||
<string>0-9A-Z_a-z</string> | ||
<key>Skip Pattern</key> | ||
<string>(?x: | ||
(?> | ||
(?P>comment) | (?P>string) | ||
) | ||
)</string> | ||
<key>String Pattern</key> | ||
<string>(?x: | ||
(?> " (?s: \\. | [^"] )*? (?: " | $) ) | | ||
(?> ' (?s: \\. | [^'] )*? (?: ' | $) ) | ||
)</string> | ||
</dict> | ||
</dict> | ||
</plist> |
72 changes: 72 additions & 0 deletions
72
BBEdit SDK/Codeless Examples/CodelessLanguageModuleTemplate.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?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"> | ||
<dict> | ||
<key>BBEditDocumentType</key> | ||
<string>CodelessLanguageModule</string> | ||
<key>BBLMLanguageDisplayName</key> | ||
<string></string> | ||
<key>BBLMLanguageCode</key> | ||
<string>????</string> | ||
<key>BBLMColorsSyntax</key> | ||
<true/> | ||
<key>BBLMScansFunctions</key> | ||
<true/> | ||
<key>BBLMIsCaseSensitive</key> | ||
<true/> | ||
<key>BBLMKeywordList</key> | ||
<array> | ||
<string></string> | ||
</array> | ||
<key>BBLMSuffixMap</key> | ||
<array> | ||
<dict> | ||
<key>BBLMLanguageSuffix</key> | ||
<string></string> | ||
</dict> | ||
</array> | ||
<key>Language Features</key> | ||
<dict> | ||
<key>Identifier and Keyword Characters</key> | ||
<string></string> | ||
<key>Prefix for Functions</key> | ||
<string></string> | ||
<key>Prefix for Procedures</key> | ||
<string></string> | ||
<key>Open Parameter Lists</key> | ||
<string></string> | ||
<key>Close Parameter Lists</key> | ||
<string></string> | ||
<key>Terminator for Prototypes 1</key> | ||
<string></string> | ||
<key>Terminator for Prototypes 2</key> | ||
<string></string> | ||
<key>Open Statement Blocks</key> | ||
<string></string> | ||
<key>Close Statement Blocks</key> | ||
<string></string> | ||
<key>Open Block Comments</key> | ||
<string></string> | ||
<key>Close Block Comments</key> | ||
<string></string> | ||
<key>Open Line Comments</key> | ||
<string></string> | ||
<key>Open Strings 1</key> | ||
<string></string> | ||
<key>Close Strings 1</key> | ||
<string></string> | ||
<key>Escape Char in Strings 1</key> | ||
<string></string> | ||
<key>End-of-line Ends Strings 1</key> | ||
<true/> | ||
<key>Open Strings 2</key> | ||
<string></string> | ||
<key>Close Strings 2</key> | ||
<string></string> | ||
<key>Escape Char in Strings 2</key> | ||
<string></string> | ||
<key>End-of-line Ends Strings 2</key> | ||
<true/> | ||
</dict> | ||
</dict> | ||
</plist> |
42 changes: 42 additions & 0 deletions
42
BBEdit SDK/Codeless Examples/NewCodelessLanguageModuleTemplate.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?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"> | ||
<dict> | ||
<key>BBEditDocumentType</key> | ||
<string>CodelessLanguageModule</string> | ||
<key>BBLMLanguageDisplayName</key> | ||
<string></string> | ||
<key>BBLMLanguageCode</key> | ||
<string>????</string> | ||
<key>BBLMColorsSyntax</key> | ||
<true/> | ||
<key>BBLMScansFunctions</key> | ||
<true/> | ||
<key>BBLMIsCaseSensitive</key> | ||
<true/> | ||
<key>BBLMKeywordList</key> | ||
<array> | ||
<string></string> | ||
</array> | ||
<key>BBLMSuffixMap</key> | ||
<array> | ||
<dict> | ||
<key>BBLMLanguageSuffix</key> | ||
<string></string> | ||
</dict> | ||
</array> | ||
<key>Language Features</key> | ||
<dict> | ||
<key>Comment Pattern</key> | ||
<string></string> | ||
<key>Function Pattern</key> | ||
<string></string> | ||
<key>Identifier and Keyword Character Class</key> | ||
<string></string> | ||
<key>Skip Pattern</key> | ||
<string></string> | ||
<key>String Pattern</key> | ||
<string></string> | ||
</dict> | ||
</dict> | ||
</plist> |
Oops, something went wrong.