mirror of
https://github.com/posva/vim-vue.git
synced 2026-10-09 23:06:06 +08:00
Fix jade syntax in vue files
The pug package isn't ready yet so you still need to use the jade package for vue files. We can still apply the pug syntax to the regions
This commit is contained in:
1 parent
a24c0b32e8
commit
4adfb9ba99
1 file changed
+1
@@ -37,6 +37,7 @@ if s:syntaxes.pug
|
|||||||
syntax include @PUG syntax/pug.vim
|
syntax include @PUG syntax/pug.vim
|
||||||
unlet b:current_syntax
|
unlet b:current_syntax
|
||||||
syntax region pug keepend start=/<template lang="[^"]*pug[^"]*">/ end="</template>" contains=@PUG fold
|
syntax region pug keepend start=/<template lang="[^"]*pug[^"]*">/ end="</template>" contains=@PUG fold
|
||||||
|
syntax region pug keepend start=/<template lang="[^"]*jade[^"]*">/ 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