Skip to content

Commit

Permalink
Initial checkin on the tmbundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Troy Stanger committed Feb 22, 2017
1 parent ed31833 commit 7236999
Show file tree
Hide file tree
Showing 15 changed files with 12,224 additions and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "TypeScript-TmLanguage"]
path = TypeScript-TmLanguage
url = https://github.com/Microsoft/TypeScript-TmLanguage.git
7 changes: 6 additions & 1 deletion README.md
@@ -1,2 +1,7 @@
# TypeScript-TextMate
A TextMate bundle for the TypeScript lanugage
A TextMate bundle for the TypeScript language.

This repo contains a simple script for fetching the latest from [Microsoft/TypeScript-TmLanguage](https://github.com/Microsoft/TypeScript-TmLanguage) and building a new tmBundle.

Download the bundle here: [Latest](https://github.com/stanger/TypeScript-TextMate/blob/master/dist/TypeScripts.tmbundle.zip)

1 change: 1 addition & 0 deletions TypeScript-TmLanguage
Submodule TypeScript-TmLanguage added at 85b2cc
28 changes: 28 additions & 0 deletions build.sh
@@ -0,0 +1,28 @@
#!/bin/bash

OUTPUT=./dist
BUNDLE_PATH="$OUTPUT/TypeScript.tmbundle"

if [ -e $BUNDLE_PATH ] ; then
rm -r $BUNDLE_PATH
fi

pushd TypeScript-TmLanguage

git pull
#TODO should a build be run here?

popd

mkdir -p $BUNDLE_PATH/Preferences
mkdir -p $BUNDLE_PATH/Syntaxes

cp TypeScript-TmLanguage/*.tmPreferences $BUNDLE_PATH/Preferences
cp TypeScript-TmLanguage/*.tmLanguage $BUNDLE_PATH/Syntaxes
cp src/* $BUNDLE_PATH

pushd $OUTPUT

zip TypeScript.tmbundle.zip TypeScript.tmbundle

popd
Binary file added dist/.DS_Store
Binary file not shown.
Binary file added dist/TypeScript.tmbundle.zip
Binary file not shown.
25 changes: 25 additions & 0 deletions dist/TypeScript.tmbundle/LICENSE
@@ -0,0 +1,25 @@

TypeScript Grammar

Copyright (c) Microsoft Corporation
All rights reserved.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
36 changes: 36 additions & 0 deletions dist/TypeScript.tmbundle/Preferences/Comments.tmPreferences
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Comments</string>
<key>scope</key>
<string>source.ts, source.tsx</string>
<key>settings</key>
<dict>
<key>shellVariables</key>
<array>
<dict>
<key>name</key>
<string>TM_COMMENT_START</string>
<key>value</key>
<string>// </string>
</dict>
<dict>
<key>name</key>
<string>TM_COMMENT_START_2</string>
<key>value</key>
<string>/*</string>
</dict>
<dict>
<key>name</key>
<string>TM_COMMENT_END_2</string>
<key>value</key>
<string>*/</string>
</dict>
</array>
</dict>
<key>uuid</key>
<string>A67A8BD9-A951-406F-9175-018DD4B52FD1</string>
</dict>
</plist>
@@ -0,0 +1,24 @@
<?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>name</key>
<string>TypeScript Indent</string>
<key>scope</key>
<string>source.ts, source.tsx</string>
<key>settings</key>
<dict>
<key>bracketIndentNextLinePattern</key>
<string>(?x)
^ \s* \b(if|while|else)\b [^;]* $
| ^ \s* \b(for)\b .* $
</string>
<key>decreaseIndentPattern</key>
<string>^(.*\*/)?\s*\}.*$</string>
<key>increaseIndentPattern</key>
<string>^.*\{[^}"']*$</string>
</dict>
<key>uuid</key>
<string>77966fa8-af34-4f1e-8535-e556d5063853</string>
</dict>
</plist>

0 comments on commit 7236999

Please sign in to comment.