Skip to content

Instantly share code, notes, and snippets.

@drudge
Created May 8, 2012 02:37
Show Gist options
  • Save drudge/2632153 to your computer and use it in GitHub Desktop.
Save drudge/2632153 to your computer and use it in GitHub Desktop.
<?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">
<!--
BBEdit Language Module for CoffeeScript
Put this file in
~/Library/Application Support/BBEdit/Language Modules
or equivalent.
Based off of the examples shipped in the BBEdit SDK.
-->
<plist version="1.0">
<dict>
<key>BBEditDocumentType</key>
<string>CodelessLanguageModule</string>
<key>BBLMLanguageDisplayName</key>
<string>Iced CoffeeScript</string>
<key>BBLMLanguageCode</key>
<string>ICSc</string>
<key>BBLMColorsSyntax</key>
<true/>
<key>BBLMScansFunctions</key>
<true/>
<key>BBLMIsCaseSensitive</key>
<true/>
<key>BBLMKeywordList</key>
<array>
<string>if</string>
<string>for</string>
<string>in</string>
<string>then</string>
<string>else</string>
<string>or</string>
<string>of</string>
<string>while</string>
<string>until</string>
<string>do</string>
<string>try</string>
<string>catch</string>
<string>is</string>
<string>isnt</string>
<string>unless</string>
<string>and</string>
<string>not</string>
<string>class</string>
<string>extends</string>
<string>super</string>
<string>new</string>
<string>this</string>
<string>switch</string>
<string>when</string>
<string>finally</string>
<string>defer</string>
<string>await</string>
</array>
<key>BBLMSuffixMap</key>
<array>
<dict>
<key>BBLMLanguageSuffix</key>
<string>.ics</string>
</dict>
<dict>
<key>BBLMLanguageSuffix</key>
<string>.iced</string>
</dict>
</array>
<key>Language Features</key>
<dict>
<key>Identifier and Keyword Character Class</key>
<string>0-9A-Z_a-z</string>
<key>Comment Pattern</key>
<string>(?x:
(?&gt; \( ) |
(?&gt; \) ) |
(?&gt; \[ ) |
(?&gt; \] ) |
(?&gt; \{ ) |
(?&gt; \} ) |
(?&gt; \: ) |
(?&gt; \@ ) |
(?&gt; -&gt; ) |
(?&gt; \# .* $ ) |
(?&gt; \#\#\# (?s:.*?) (?: \#\#\# | \z ))
)</string>
<key>String Pattern</key>
<string>(?x:
(?&gt; ` (?s: \\. | [^`] )*? (?: ` ) ) |
(?&gt; /// (?s: \\. | [^/] )*? (?: /// ) ) |
(?&gt; """ (?s: \\. | [^"] )*? (?: """ ) ) |
(?&gt; ''' (?s: \\. | [^'] )*? (?: ''' ) ) |
(?&gt; " (?s: \\. | [^"] )*? (?: " ) ) |
(?&gt; ' (?s: \\. | [^'] )*? (?: ' ) )
)</string>
<key>Function Pattern</key>
<string><![CDATA[(?x:^(?P<leadspace>^\s*)
(?P<function>
(?P<function_name>[a-zA-z0-9_@]+)
\W*=\W*(\(.+\))?
(?s:.+?)
[\r\n](?P=leadspace)$
)
)]]>
</string>
</dict>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment