Skip to content

Commit

Permalink
- scope self, sender, etc as variable.language.io by analogy with the…
Browse files Browse the repository at this point in the history
… 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
Rob Rix committed May 12, 2006
1 parent 8c2f300 commit 9ca2b33
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Syntaxes/Io.plist
Expand Up @@ -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>
Expand All @@ -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>
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 9ca2b33

Please sign in to comment.