mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 21:54:46 +08:00
Update Vue tags regexp
This commit is contained in:
@@ -114,43 +114,43 @@ endif
|
|||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" All start with html/javascript/css for emmet-vim in-file type detection
|
" All start with html/javascript/css for emmet-vim in-file type detection
|
||||||
syntax region htmlVueTemplate fold
|
syntax region htmlVueTemplate fold
|
||||||
\ start=+<template\(\s.\{-}\)\?>+
|
\ start=+<template[^>]*>+
|
||||||
\ end=+^</template>+
|
\ end=+^</template>+
|
||||||
\ keepend contains=@HTMLSyntax
|
\ keepend contains=@HTMLSyntax
|
||||||
" When code is not well indented
|
" When code is not well indented
|
||||||
syntax region htmlVueTemplate fold
|
syntax region htmlVueTemplate fold
|
||||||
\ start=+<template\(\s.\{-}\)\?>+
|
\ start=+<template[^>]*>+
|
||||||
\ end=+</template>\ze\n\(^$\n\)*<script>+
|
\ end=+</template>\ze\n\(^$\n\)*<script>+
|
||||||
\ keepend contains=@HTMLSyntax
|
\ keepend contains=@HTMLSyntax
|
||||||
|
|
||||||
syntax region pugVueTemplate fold
|
syntax region pugVueTemplate fold
|
||||||
\ start=+<template lang="pug"\(\s.\{-}\)\?>+
|
\ start=+<template lang="pug"[^>]*>+
|
||||||
\ end=+</template>+
|
\ end=+</template>+
|
||||||
\ keepend contains=@PugSyntax,vueTag
|
\ keepend contains=@PugSyntax,vueTag
|
||||||
|
|
||||||
syntax region javascriptVueScript fold
|
syntax region javascriptVueScript fold
|
||||||
\ start=+<script\(\s.\{-}\)\?>+
|
\ start=+<script[^>]*>+
|
||||||
\ end=+</script>+
|
\ end=+</script>+
|
||||||
\ keepend contains=@htmlJavaScript,jsImport,jsExport,vueTag
|
\ keepend contains=@htmlJavaScript,jsImport,jsExport,vueTag
|
||||||
syntax region coffeeVueScript fold
|
syntax region coffeeVueScript fold
|
||||||
\ start=+<script lang="coffee"\(\s.\{-}\)\?>+
|
\ start=+<script lang="coffee"[^>]*>+
|
||||||
\ end=+</script>+
|
\ end=+</script>+
|
||||||
\ keepend contains=@htmlCoffeeScript,jsImport,jsExport,vueTag
|
\ keepend contains=@htmlCoffeeScript,jsImport,jsExport,vueTag
|
||||||
|
|
||||||
syntax region cssVueStyle fold
|
syntax region cssVueStyle fold
|
||||||
\ start=+<style\(\s.\{-}\)\?>+
|
\ start=+<style[^>]*>+
|
||||||
\ end=+</style>+
|
\ end=+</style>+
|
||||||
\ keepend contains=@htmlCss,vueTag
|
\ keepend contains=@htmlCss,vueTag
|
||||||
syntax region cssLessVueStyle fold
|
syntax region cssLessVueStyle fold
|
||||||
\ start=+<style lang="less"\(\s.\{-}\)\?>+
|
\ start=+<style[^>]*lang="less"[^>]*>+
|
||||||
\ end=+</style>+
|
\ end=+</style>+
|
||||||
\ keepend contains=@LessSyntax,vueTag
|
\ keepend contains=@LessSyntax,vueTag
|
||||||
syntax region cssSassVueStyle fold
|
syntax region cssSassVueStyle fold
|
||||||
\ start=+<style lang="sass"\(\s.\{-}\)\?>+
|
\ start=+<style[^>]*lang="sass"[^>]*>+
|
||||||
\ end=+</style>+
|
\ end=+</style>+
|
||||||
\ keepend contains=@SassSyntax,vueTag
|
\ keepend contains=@SassSyntax,vueTag
|
||||||
syntax region cssScssVueStyle fold
|
syntax region cssScssVueStyle fold
|
||||||
\ start=+<style lang="scss"\(\s.\{-}\)\?>+
|
\ start=+<style[^>]*lang="scss"[^>]*>+
|
||||||
\ end=+</style>+
|
\ end=+</style>+
|
||||||
\ keepend contains=@SassSyntax,vueTag
|
\ keepend contains=@SassSyntax,vueTag
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user