From abc025326ff3ceb340fe826f4e2a1111b705a090 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 19 Apr 2013 08:46:06 -0700 Subject: [PATCH] :lipstick: --- src/app/text-mate-scope-selector-matchers.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/text-mate-scope-selector-matchers.coffee b/src/app/text-mate-scope-selector-matchers.coffee index c5cb5c6ae..8191c36d7 100644 --- a/src/app/text-mate-scope-selector-matchers.coffee +++ b/src/app/text-mate-scope-selector-matchers.coffee @@ -22,12 +22,12 @@ class ScopeMatcher matches: (scope) -> scopeSegments = scope.split('.') - if scopeSegments.length < @segments.length - return false + return false if scopeSegments.length < @segments.length + for segment, index in @segments - unless segment.matches(scopeSegments[index]) - return false + return false unless segment.matches(scopeSegments[index]) + true class PathMatcher