Include JS/CoffeeScript grammars in markdown code blocks

This commit is contained in:
Kevin Sawicki
2013-04-24 17:57:44 -07:00
parent 4e8c6e29ad
commit 0640631d07
2 changed files with 24 additions and 0 deletions

View File

@@ -17,3 +17,7 @@ Check out our [documentation on the docs tab](https://github.com/github/atom/doc
1. `gh-setup atom`
2. `cd ~/github/atom && rake install`
```coffeescript
-> 'hello'
```

View File

@@ -49,6 +49,26 @@
'match': '^\\s*[-]{3,}\\s*$'
'name': 'comment.hr.gfm'
}
{
'begin': '^```coffee(script)?$'
'beginCaptures':
'0': 'name': 'support.gfm'
'end': '^```$'
'endCaptures':
'0': 'name': 'support.gfm'
'name': 'markup.raw.gfm'
'patterns': ['include': 'source.coffee']
}
{
'begin': '^```(javascript|js)$'
'beginCaptures':
'0': 'name': 'support.gfm'
'end': '^```$'
'endCaptures':
'0': 'name': 'support.gfm'
'name': 'markup.raw.gfm'
'patterns': ['include': 'source.js']
}
{
'begin': '^```.*$'
'beginCaptures':