diff --git a/README.md b/README.md index 00db8d6b6..16eaa2882 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,7 @@ keys by calling `window.keymap.bindKeys` with a CSS selector and a hash of key-p ```coffeescript window.keymap.bindKeys '.editor' 'ctrl-p': 'party-time' + 'ctrl-q': 'open-dialog-q' ``` diff --git a/src/packages/gfm.tmbundle/Syntaxes/gfm.cson b/src/packages/gfm.tmbundle/Syntaxes/gfm.cson index 95b3b8eb1..1f6a5a3f7 100644 --- a/src/packages/gfm.tmbundle/Syntaxes/gfm.cson +++ b/src/packages/gfm.tmbundle/Syntaxes/gfm.cson @@ -51,10 +51,7 @@ 'end': '^```$' 'endCaptures': '0': 'name': 'support.gfm' - 'patterns': [ - 'match': '.*' - 'name': 'markup.raw.gfm' - ] + 'name': 'markup.raw.gfm' } { 'match': '`[^`]+`' diff --git a/src/packages/gfm.tmbundle/spec/gfm-spec.coffee b/src/packages/gfm.tmbundle/spec/gfm-spec.coffee index d94d2572c..42b739832 100644 --- a/src/packages/gfm.tmbundle/spec/gfm-spec.coffee +++ b/src/packages/gfm.tmbundle/spec/gfm-spec.coffee @@ -85,11 +85,11 @@ describe "GitHub Flavored Markdown grammar", -> it "tokenizes a ``` code block```", -> {tokens, ruleStack} = grammar.tokenizeLine("```coffeescript") - expect(tokens[0]).toEqual value: "```coffeescript", scopes: ["source.gfm", "support.gfm"] + expect(tokens[0]).toEqual value: "```coffeescript", scopes: ["source.gfm", "markup.raw.gfm", "support.gfm"] {tokens, ruleStack} = grammar.tokenizeLine("-> 'hello'", ruleStack) expect(tokens[0]).toEqual value: "-> 'hello'", scopes: ["source.gfm", "markup.raw.gfm"] {tokens} = grammar.tokenizeLine("```", ruleStack) - expect(tokens[0]).toEqual value: "```", scopes: ["source.gfm", "support.gfm"] + expect(tokens[0]).toEqual value: "```", scopes: ["source.gfm", "markup.raw.gfm", "support.gfm"] it "tokenizes inline `code` blocks", -> {tokens} = grammar.tokenizeLine("`this` is `code`")