From a447ab4edc32c3340ea71a985cb63685d11fc9b7 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 22 Apr 2013 13:48:49 -0700 Subject: [PATCH] Add link segment to GFM underline scope --- src/packages/gfm/grammars/gfm.cson | 2 +- src/packages/gfm/spec/gfm-spec.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packages/gfm/grammars/gfm.cson b/src/packages/gfm/grammars/gfm.cson index ff77790d0..4f8f9fc79 100644 --- a/src/packages/gfm/grammars/gfm.cson +++ b/src/packages/gfm/grammars/gfm.cson @@ -67,7 +67,7 @@ 'name': 'link' 'captures': '1': 'name': 'entity.gfm' - '2': 'name': 'markup.underline.gfm' + '2': 'name': 'markup.underline.link.gfm' } { 'match': '^\\s*([\\*\\+-])[ \\t]+' diff --git a/src/packages/gfm/spec/gfm-spec.coffee b/src/packages/gfm/spec/gfm-spec.coffee index 39f70236a..83e08549b 100644 --- a/src/packages/gfm/spec/gfm-spec.coffee +++ b/src/packages/gfm/spec/gfm-spec.coffee @@ -105,7 +105,7 @@ describe "GitHub Flavored Markdown grammar", -> expect(tokens[1]).toEqual value: "[", scopes: ["source.gfm", "link"] expect(tokens[2]).toEqual value: "this link", scopes: ["source.gfm", "link", "entity.gfm"] expect(tokens[3]).toEqual value: "](", scopes: ["source.gfm", "link"] - expect(tokens[4]).toEqual value: "website", scopes: ["source.gfm", "link", "markup.underline.gfm"] + expect(tokens[4]).toEqual value: "website", scopes: ["source.gfm", "link", "markup.underline.link.gfm"] expect(tokens[5]).toEqual value: ")", scopes: ["source.gfm", "link"] it "tokenizes lists", ->