mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Include JS/CoffeeScript grammars in markdown code blocks
This commit is contained in:
@@ -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'
|
||||
```
|
||||
|
||||
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user