Permalink
Browse files

- scope self, sender, etc as variable.language.io by analogy with the…

… ObjC language's handling of "self" (note that this is not consistent with C++'s handling of "this" but there may be some subtle difference which eludes me)

- repair the () and ,) meta-scopes to match the new behaviour of applying scope to the left instead of to the right

git-svn-id: http://svn.textmate.org/trunk/Bundles/Io.tmbundle@3314 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 8c2f300 commit 9ca2b335cf81b7422434c07a12f343e78787f1c8 Rob Rix committed May 12, 2006
Showing with 7 additions and 7 deletions.
  1. +7 −7 Syntaxes/Io.plist
View
@@ -26,9 +26,9 @@
</dict>
</dict>
<key>comment</key>
- <string>we match this to overload return inside () --Allan</string>
+ <string>we match this to overload return inside () --Allan; scoping rules for what gets the scope have changed, so we now group the ) instead of the ( -- Rob</string>
<key>match</key>
- <string>(\()\)</string>
+ <string>\((\))</string>
</dict>
<dict>
<key>captures</key>
@@ -40,9 +40,9 @@
</dict>
</dict>
<key>comment</key>
- <string>We want to do the same for ,) -- Seckar</string>
+ <string>We want to do the same for ,) -- Seckar; same as above -- Rob</string>
<key>match</key>
- <string>(\,)\)</string>
+ <string>\,(\))</string>
</dict>
<dict>
<key>match</key>
@@ -72,11 +72,11 @@
</dict>
<dict>
<key>comment</key>
- <string>I wonder if some of this isn't variable.other.language? --Allan</string>
+ <string>I wonder if some of this isn't variable.other.language? --Allan; scoping this as variable.language to match Objective-C's handling of 'self', which is inconsistent with C++'s handling of 'this' but perhaps intentionally so -- Rob</string>
<key>match</key>
- <string>\b(self|sender|target|proto|protos)\b</string>
+ <string>\b(self|sender|target|proto|protos|parent)\b</string>
<key>name</key>
- <string>keyword.other.io</string>
+ <string>variable.language.io</string>
</dict>
<dict>
<key>match</key>

0 comments on commit 9ca2b33

Please sign in to comment.