Support colorizing fenced python blocks

This commit is contained in:
Kevin Sawicki 2013-06-24 15:08:19 -07:00
parent 34e5594a2d
commit 1cf02c22a7
2 changed files with 11 additions and 0 deletions

View File

@ -124,6 +124,16 @@
'name': 'markup.code.shell.gfm'
'patterns': ['include': 'source.shell']
}
{
'begin': '^`{3,}py(thon)?$'
'beginCaptures':
'0': 'name': 'support.gfm'
'end': '^`{3,}$'
'endCaptures':
'0': 'name': 'support.gfm'
'name': 'markup.code.shell.gfm'
'patterns': ['include': 'source.shell']
}
{
'begin': '^`{3,}.*$'
'beginCaptures':

View File

@ -14,6 +14,7 @@ fenceNameToExtension =
'javascript': 'js'
'js': 'js'
'mustache': 'mustache'
'python': 'py'
'rb': 'rb'
'ruby': 'rb'
'sh': 'sh'