Skip to content

Instantly share code, notes, and snippets.

@rekomat
Forked from davethesoftwaredev/TypeScript.plist
Last active August 29, 2015 14:18
Show Gist options
  • Save rekomat/7aa1796407753f2871cc to your computer and use it in GitHub Desktop.
Save rekomat/7aa1796407753f2871cc 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 TypeScript
Put this file in
~/Library/Application Support/BBEdit/Language Modules
or equivalent.
Based off the language file for CoffeeScript found at
http://joyofmodeling.org/index.php/OSX/coffeescript-syntax-coloring-in-text-wrangler.html
-->
<plist version="1.0">
<dict>
<key>BBEditDocumentType</key>
<string>CodelessLanguageModule</string>
<key>BBLMLanguageDisplayName</key>
<string>TypeScript</string>
<key>BBLMLanguageCode</key>
<string>TySc</string>
<key>BBLMColorsSyntax</key>
<true/>
<key>BBLMCommentLineDefault</key>
<string>//</string>
<key>BBLMCommentPrefixDefault</key>
<string>/*</string>
<key>BBLMCommentSuffixDefault</key>
<string>*/</string>
<key>BBLMScansFunctions</key>
<true/>
<key>BBLMIsCaseSensitive</key>
<true/>
<key>BBLMKeywordList</key>
<array>
<string>break</string>
<string>case</string>
<string>catch</string>
<string>continue</string>
<string>debugger</string>
<string>default</string>
<string>delete</string>
<string>do</string>
<string>else</string>
<string>finally</string>
<string>for</string>
<string>function</string>
<string>if</string>
<string>in</string>
<string>instanceof</string>
<string>new</string>
<string>return</string>
<string>switch</string>
<string>this</string>
<string>throw</string>
<string>try</string>
<string>typeof</string>
<string>var</string>
<string>void</string>
<string>while</string>
<string>with</string>
<string>public</string>
<string>class</string>
<string>extends</string>
<string>super</string>
<string>any</string>
<string>number</string>
<string>bool</string>
<string>string</string>
<string>export</string>
<string>declare</string>
</array>
<key>BBLMSuffixMap</key>
<array>
<dict>
<key>BBLMLanguageSuffix</key>
<string>.ts</string>
</dict>
</array>
<key>Language Features</key>
<dict>
<key>Identifier and Keyword Character Class</key>
<string>0-9A-Z_a-z</string>
<key>Open Block Comments</key>
<string>/*</string>
<key>Close Block Comments</key>
<string>*/</string>
<key>Open Line Comments</key>
<string>//</string>
<key>String Pattern</key>
<string>(?x:
(?&gt; ` (?s: \\. | [^`] )*? (?: ` ) ) |
(?&gt; /// (?s: \\. | [^/] )*? (?: /// ) ) |
(?&gt; """ (?s: \\. | [^"] )*? (?: """ ) ) |
(?&gt; ''' (?s: \\. | [^'] )*? (?: ''' ) ) |
(?&gt; " (?s: \\. | [^"] )*? (?: " ) ) |
(?&gt; ' (?s: \\. | [^'] )*? (?: ' ) )
)</string>
<key>Comment Pattern</key>
<string>(?x: (?&gt; // .* $ ) | (?&gt; /\* (?s:.*?) (?: \*/ | \z ) ) )</string>
</dict>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment