diff options
Diffstat (limited to 'after')
| -rw-r--r-- | after/indent/html.vim | 2 | ||||
| -rw-r--r-- | after/syntax/html.vim | 2 | ||||
| -rw-r--r-- | after/syntax/yaml.vim | 2 | 
3 files changed, 3 insertions, 3 deletions
| diff --git a/after/indent/html.vim b/after/indent/html.vim index a7113514..47da18f0 100644 --- a/after/indent/html.vim +++ b/after/indent/html.vim @@ -20,7 +20,7 @@ setlocal indentexpr=GetCoffeeHtmlIndent(v:lnum)  function! GetCoffeeHtmlIndent(curlinenum)    " See if we're inside a coffeescript block. -  let scriptlnum = searchpair('<script [^>]*type="text/coffeescript"[^>]*>', '', +  let scriptlnum = searchpair('<script [^>]*type=[''"]\?text/coffeescript[''"]\?[^>]*>', '',    \                           '</script>', 'bWn')    let prevlnum = prevnonblank(a:curlinenum) diff --git a/after/syntax/html.vim b/after/syntax/html.vim index 5979f111..ab99117d 100644 --- a/after/syntax/html.vim +++ b/after/syntax/html.vim @@ -11,7 +11,7 @@ endif  " Syntax highlighting for text/coffeescript script tags  syn include @htmlCoffeeScript syntax/coffee.vim -syn region coffeeScript start=#<script [^>]*type="text/coffeescript"[^>]*># +syn region coffeeScript start=#<script [^>]*type=['"]\?text/coffeescript['"]\?[^>]*>#  \                       end=#</script>#me=s-1 keepend  \                       contains=@htmlCoffeeScript,htmlScriptTag,@htmlPreproc  \                       containedin=htmlHead diff --git a/after/syntax/yaml.vim b/after/syntax/yaml.vim index 57d9a234..7f4808db 100644 --- a/after/syntax/yaml.vim +++ b/after/syntax/yaml.vim @@ -40,7 +40,7 @@ syn keyword yamlConstant NULL Null null NONE None none NIL Nil nil  syn keyword yamlConstant TRUE True true YES Yes yes ON On on  syn keyword yamlConstant FALSE False false NO No no OFF Off off -syn match  yamlKey	"\w\+\ze\s*:" +syn match  yamlKey	"^\s*\zs\S\+\ze\s*:"  syn match  yamlAnchor	"&\S\+"  syn match  yamlAlias	"*\S\+" | 
