From 2d386502656437ec1caed6fd93a599b6cd7ec229 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 26 Sep 2012 09:56:52 -0600 Subject: [PATCH] Linguistic :lipstick: --- spec/app/text-mate-grammar-spec.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/app/text-mate-grammar-spec.coffee b/spec/app/text-mate-grammar-spec.coffee index fc9d53375..15b937212 100644 --- a/spec/app/text-mate-grammar-spec.coffee +++ b/spec/app/text-mate-grammar-spec.coffee @@ -147,7 +147,7 @@ describe "TextMateGrammar", -> expect(secondTokens[0]).toEqual value: "heredoc", scopes: ['source.coffee', 'string.quoted.heredoc.coffee'] expect(secondTokens[1]).toEqual value: "'''", scopes: ['source.coffee', 'string.quoted.heredoc.coffee', 'punctuation.definition.string.end.coffee'] - describe "when pattern contains sub-patterns", -> + describe "when the pattern contains sub-patterns", -> it "returns tokens within the begin/end scope based on the sub-patterns", -> {tokens} = grammar.getLineTokens('"""heredoc with character escape \\t"""') @@ -159,7 +159,7 @@ describe "TextMateGrammar", -> expect(tokens[3]).toEqual value: '"""', scopes: ['source.coffee', 'string.quoted.double.heredoc.coffee', 'punctuation.definition.string.end.coffee'] describe "when the end pattern contains a back reference", -> - it "creates tokens without adding a new scope", -> + it "constructs the end rule based on its back-references to captures in the begin rule", -> grammar = TextMateBundle.grammarsByFileType["rb"] {tokens} = grammar.getLineTokens('%w|oh|,') expect(tokens.length).toBe 4