Skip to content

Commit

Permalink
Add a test case for jekyll frontmatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
nelstrom committed Dec 4, 2012
1 parent 65dac14 commit c960ff5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/folding.vim
Original file line number Diff line number Diff line change
Expand Up @@ -482,3 +482,24 @@ describe 'Fenced code blocks'
end

end

describe 'Jekyll front matter'

before
syntax on
silent tabnew test/samples/jekyll-meta.md
setlocal filetype=markdown
end

after
silent tabclose
syntax off
end

it 'do not create new folds, even when a line starts with #'
setlocal foldlevel=0
Expect FoldBoundariesInRange(1,7) toHaveBoundaries [-1,-1]
Expect FoldBoundariesInRange(8,10) toHaveBoundaries [8,10]
end

end

0 comments on commit c960ff5

Please sign in to comment.