Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Revert "cram.vim: use @shell from syntax/zsh.vim for SHELL=zsh"
Browse files Browse the repository at this point in the history
This reverts commit f18fe33.

This was causing an issue where zsh.vim would fold all sections by
default. This change is also questionable considering one might be using
zsh locally but may be writing tests to run against /bin/sh.
  • Loading branch information
aiiie committed Feb 24, 2016
1 parent 8d292aa commit d4beef2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions contrib/cram.vim
Expand Up @@ -15,11 +15,7 @@ if exists("b:current_syntax")
finish
endif

if fnamemodify($SHELL, ':t') == 'zsh'
syn include @Shell syntax/zsh.vim
else
syn include @Shell syntax/sh.vim
endif
syn include @Shell syntax/sh.vim

syn match cramComment /^[^ ].*$/ contains=@Spell
syn region cramOutput start=/^ [^$>]/ start=/^ $/ end=/\v.(\n\n*[^ ])\@=/me=s end=/^ [$>]/me=e-3 end=/^$/ fold containedin=cramBlock
Expand Down

0 comments on commit d4beef2

Please sign in to comment.