Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add TextMate bundle.

  • Loading branch information...
commit 01286ed14ab4252f8bca846534651452e3c4d19b 1 parent 1741a18
@coreh authored
View
19 editors/textmate/Katana.tmbundle/Preferences/Indenting.tmPreferences
@@ -0,0 +1,19 @@
+<?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>Katana Indenting</string>
+ <key>scope</key>
+ <string>source.k</string>
+ <key>settings</key>
+ <dict>
+ <key>decreaseIndentPattern</key>
+ <string>^.*\}$</string>
+ <key>increaseIndentPattern</key>
+ <string>^.*(\-\&gt;|\{)$</string>
+ </dict>
+ <key>uuid</key>
+ <string>E8626477-406F-4413-B9BB-EA490167107C</string>
+</dict>
+</plist>
View
113 editors/textmate/Katana.tmbundle/Syntaxes/untitled.tmLanguage
@@ -0,0 +1,113 @@
+<?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>fileTypes</key>
+ <array>
+ <string>k</string>
+ </array>
+ <key>foldingStartMarker</key>
+ <string>/\*\*|\{\s*$</string>
+ <key>foldingStopMarker</key>
+ <string>\*\*/|^\s*\}</string>
+ <key>name</key>
+ <string>Katana</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>match</key>
+ <string>\b(0|[1-9][0-9]*)(\.[0-9]+)?((e|E)(\+|\-)[0-9]+)?</string>
+ <key>name</key>
+ <string>constant.numeric.katana</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>(\b|\\)(if|else|while|for|break|continue)\b</string>
+ <key>name</key>
+ <string>keyword.control.katana</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>(\b|\\)(take|do|return)\b</string>
+ <key>name</key>
+ <string>keyword.other.katana</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>(\b|\\)(sizeof|instanceof|in|new)\b</string>
+ <key>name</key>
+ <string>keyword.operator.katana</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>(\b|\\)(import|export|from)\b</string>
+ <key>name</key>
+ <string>keyword.other.katana</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>(\b|\\)(true|false|yes|no|on|off|null|undefined|NaN|infinity|this)\b</string>
+ <key>name</key>
+ <string>constant.language.katana</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>(\b|\\)(var|void|u?int(|8|16|32|64)|float(|32|64)|struct(\s+[\_\$a-zA-Z][\_\$a-zA-Z0-9]*)?|bool)\b</string>
+ <key>name</key>
+ <string>storage.type.katana</string>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>"</string>
+ <key>end</key>
+ <string>"</string>
+ <key>name</key>
+ <string>string.quoted.double.katana</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>match</key>
+ <string>\\.</string>
+ <key>name</key>
+ <string>constant.character.escape.untitled</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>'</string>
+ <key>end</key>
+ <string>'</string>
+ <key>name</key>
+ <string>string.quoted.single.katana</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>match</key>
+ <string>\\.</string>
+ <key>name</key>
+ <string>constant.character.escape.untitled</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>/\*</string>
+ <key>end</key>
+ <string>\*/</string>
+ <key>name</key>
+ <string>comment.block.katana</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>(//).*$\n?</string>
+ <key>name</key>
+ <string>comment.line.katana</string>
+ </dict>
+ </array>
+ <key>scopeName</key>
+ <string>source.k</string>
+ <key>uuid</key>
+ <string>1CE0DFA0-C721-4773-A9C0-9DC994F0202F</string>
+</dict>
+</plist>
View
10 editors/textmate/Katana.tmbundle/info.plist
@@ -0,0 +1,10 @@
+<?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>Katana</string>
+ <key>uuid</key>
+ <string>BB2D5CD4-FDB1-44CA-BB22-CD1AB1751F78</string>
+</dict>
+</plist>
Please sign in to comment.
Something went wrong with that request. Please try again.