Skip to content

Commit

Permalink
force YAML processing on all eruby file types
Browse files Browse the repository at this point in the history
YAML will be processed between the document markers "---" for
all eruby file types.  This is useful for static website generators
like Webby.
  • Loading branch information
robertwahler committed Mar 18, 2010
1 parent 53b0674 commit c107472
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions after/syntax/eruby.vim
@@ -0,0 +1,5 @@
" YAML Metadata blocks (Webby)
unlet b:current_syntax
syn include @yamlMetadata syntax/yaml.vim

syn region embeddedYaml start="^---$" end="^---\n" keepend contains=@yamlMetadata

0 comments on commit c107472

Please sign in to comment.