Skip to content

Commit

Permalink
Add raw scope to entire block
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Feb 13, 2013
1 parent b2a9208 commit 7d7af86
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
```

Expand Down
5 changes: 1 addition & 4 deletions src/packages/gfm.tmbundle/Syntaxes/gfm.cson
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@
'end': '^```$'
'endCaptures':
'0': 'name': 'support.gfm'
'patterns': [
'match': '.*'
'name': 'markup.raw.gfm'
]
'name': 'markup.raw.gfm'
}
{
'match': '`[^`]+`'
Expand Down
4 changes: 2 additions & 2 deletions src/packages/gfm.tmbundle/spec/gfm-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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`")
Expand Down

0 comments on commit 7d7af86

Please sign in to comment.