Mercurial > vim
comparison runtime/indent/haml.vim @ 4681:2eb30f341e8d
Updated runtime files and translations.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 01 Jun 2013 14:50:56 +0200 |
parents | 6de9efd58dc0 |
children | 43efa4f5a8ea |
comparison
equal
deleted
inserted
replaced
4680:fd8cc7fbc273 | 4681:2eb30f341e8d |
---|---|
1 " Vim indent file | 1 " Vim indent file |
2 " Language: Haml | 2 " Language: Haml |
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org> | 3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org> |
4 " Last Change: 2010 May 21 | 4 " Last Change: 2013 May 30 |
5 | 5 |
6 if exists("b:did_indent") | 6 if exists("b:did_indent") |
7 finish | 7 finish |
8 endif | 8 endif |
9 runtime! indent/ruby.vim | 9 runtime! indent/ruby.vim |
21 | 21 |
22 let s:attributes = '\%({.\{-\}}\|\[.\{-\}\]\)' | 22 let s:attributes = '\%({.\{-\}}\|\[.\{-\}\]\)' |
23 let s:tag = '\%([%.#][[:alnum:]_-]\+\|'.s:attributes.'\)*[<>]*' | 23 let s:tag = '\%([%.#][[:alnum:]_-]\+\|'.s:attributes.'\)*[<>]*' |
24 | 24 |
25 if !exists('g:haml_self_closing_tags') | 25 if !exists('g:haml_self_closing_tags') |
26 let g:haml_self_closing_tags = 'meta|link|img|hr|br' | 26 let g:haml_self_closing_tags = 'base|link|meta|br|hr|img|input' |
27 endif | 27 endif |
28 | 28 |
29 function! GetHamlIndent() | 29 function! GetHamlIndent() |
30 let lnum = prevnonblank(v:lnum-1) | 30 let lnum = prevnonblank(v:lnum-1) |
31 if lnum == 0 | 31 if lnum == 0 |