From 1a90f1c0174ec4100fc99b6e499affec3850dc7d Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 10 May 2013 11:50:21 -0700 Subject: [PATCH] Include source.shell inside of sh/bash code blocks --- src/packages/gfm/grammars/gfm.cson | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/packages/gfm/grammars/gfm.cson b/src/packages/gfm/grammars/gfm.cson index 91f263a57..988c457f0 100644 --- a/src/packages/gfm/grammars/gfm.cson +++ b/src/packages/gfm/grammars/gfm.cson @@ -113,6 +113,16 @@ 'name': 'markup.code.java.gfm' 'patterns': ['include': 'source.java'] } + { + 'begin': '^```(sh|bash)$' + 'beginCaptures': + '0': 'name': 'support.gfm' + 'end': '^```$' + 'endCaptures': + '0': 'name': 'support.gfm' + 'name': 'markup.code.shell.gfm' + 'patterns': ['include': 'source.shell'] + } { 'begin': '^```.*$' 'beginCaptures':