From 9ca2b335cf81b7422434c07a12f343e78787f1c8 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Fri, 12 May 2006 10:06:35 +0000 Subject: [PATCH] - 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 --- Syntaxes/Io.plist | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Syntaxes/Io.plist b/Syntaxes/Io.plist index cb06a3b..27ab903 100644 --- a/Syntaxes/Io.plist +++ b/Syntaxes/Io.plist @@ -26,9 +26,9 @@ comment - we match this to overload return inside () --Allan + 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 match - (\()\) + \((\)) captures @@ -40,9 +40,9 @@ comment - We want to do the same for ,) -- Seckar + We want to do the same for ,) -- Seckar; same as above -- Rob match - (\,)\) + \,(\)) match @@ -72,11 +72,11 @@ comment - I wonder if some of this isn't variable.other.language? --Allan + 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 match - \b(self|sender|target|proto|protos)\b + \b(self|sender|target|proto|protos|parent)\b name - keyword.other.io + variable.language.io match