Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

• added a few comments to the syntax

• match () and added a snippet to overload return inside these


git-svn-id: http://svn.textmate.org/trunk/Bundles/Io.tmbundle@1573 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
commit 9b3f19f33b9b8b46ed168b26e21738c104b89bf1 1 parent 39ec026
@sorbits sorbits authored
Showing with 37 additions and 2 deletions.
  1. +18 −0 Snippets/Indented return.plist
  2. +18 −2 Syntaxes/Io.plist
  3. +1 −0  info.plist
View
18 Snippets/Indented return.plist
@@ -0,0 +1,18 @@
+<?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>content</key>
+ <string>
+ $0
+</string>
+ <key>keyEquivalent</key>
+ <string>
+</string>
+ <key>name</key>
+ <string>Indented return</string>
+ <key>scope</key>
+ <string>source.io meta.empty-parenthesis.io</string>
+ <key>uuid</key>
+ <string>0F687653-BF6D-4C2C-A75E-C9193E870BBC</string>
+</dict>
View
20 Syntaxes/Io.plist
@@ -11,18 +11,34 @@
<key>foldingStopMarker</key>
<string>(\*\*/|^\s*\))</string>
<key>keyEquivalent</key>
- <string></string>
+ <string>^~I</string>
<key>name</key>
<string>Io</string>
<key>patterns</key>
<array>
<dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>meta.empty-parenthesis.io</string>
+ </dict>
+ </dict>
+ <key>comment</key>
+ <string>we match this to overload return inside () --Allan</string>
+ <key>match</key>
+ <string>(\()\)</string>
+ </dict>
+ <dict>
<key>match</key>
<string>\b(if|ifTrue|ifFalse|ifTrueIfFalse|for|loop|reverseForeach|foreach|map|continue|break|while|do|return)\b</string>
<key>name</key>
<string>keyword.control.io</string>
</dict>
<dict>
+ <key>comment</key>
+ <string>I wonder if some of this isn't variable.other.language? --Allan</string>
<key>match</key>
<string>\b(self|sender|target|proto|parent|protos)\b</string>
<key>name</key>
@@ -76,7 +92,7 @@
<key>match</key>
<string>#.*$</string>
<key>name</key>
- <string>comment.line.pound.io</string>
+ <string>comment.line.number-sign.io</string>
</dict>
<dict>
<key>begin</key>
View
1  info.plist
@@ -7,6 +7,7 @@
<key>ordering</key>
<array>
<string>937C187C-75F2-42F7-9AB8-972CBB9BABF5</string>
+ <string>0F687653-BF6D-4C2C-A75E-C9193E870BBC</string>
<string>BD798537-3548-47F3-A6AB-7FB95C45DB83</string>
<string>EB39C2A9-C0C2-4ACE-899F-CA73ECA986E3</string>
</array>
Please sign in to comment.
Something went wrong with that request. Please try again.