mirror of
https://github.com/posva/vim-vue.git
synced 2025-12-09 02:44:45 +08:00
Renamed jade to pug
Fixes #8 Alse see https://github.com/pugjs/jade/issues/2184 You should now replace your jade loaders by the pug loaders and also the digitaltoad/vim-jade by digitaltoad/vim-pug which is the new vim syntax plugin for pug (mantained by the same person)
This commit is contained in:
@@ -25,7 +25,7 @@ if !exists("s:syntaxes")
|
|||||||
return syntaxes
|
return syntaxes
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
let s:syntaxes = s:search_syntaxes('jade', 'coffee', 'stylus', 'sass', 'less')
|
let s:syntaxes = s:search_syntaxes('pug', 'coffee', 'stylus', 'sass', 'less')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
@@ -33,10 +33,10 @@ syntax include @HTML syntax/html.vim
|
|||||||
unlet b:current_syntax
|
unlet b:current_syntax
|
||||||
syntax region template keepend start=/^<template>/ end=/^<\/template>/ contains=@HTML fold
|
syntax region template keepend start=/^<template>/ end=/^<\/template>/ contains=@HTML fold
|
||||||
|
|
||||||
if s:syntaxes.jade
|
if s:syntaxes.pug
|
||||||
syntax include @JADE syntax/jade.vim
|
syntax include @PUG syntax/pug.vim
|
||||||
unlet b:current_syntax
|
unlet b:current_syntax
|
||||||
syntax region jade keepend start=/<template lang="[^"]*jade[^"]*">/ end="</template>" contains=@JADE fold
|
syntax region pug keepend start=/<template lang="[^"]*pug[^"]*">/ end="</template>" contains=@PUG fold
|
||||||
endif
|
endif
|
||||||
|
|
||||||
syntax include @JS syntax/javascript.vim
|
syntax include @JS syntax/javascript.vim
|
||||||
|
|||||||
Reference in New Issue
Block a user