mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-11 23:21:55 +08:00
Support single quote for language definition
This commit is contained in:
@@ -160,12 +160,12 @@ syntax region cssVueStyle fold
|
|||||||
|
|
||||||
" Preprocessors syntax
|
" Preprocessors syntax
|
||||||
syntax region pugVueTemplate fold
|
syntax region pugVueTemplate fold
|
||||||
\ start=+<template[^>]*lang="pug"[^>]*>+
|
\ start=+<template[^>]*lang=["']pug["'][^>]*>+
|
||||||
\ end=+</template>+
|
\ end=+</template>+
|
||||||
\ keepend contains=@PugSyntax,vueTag
|
\ keepend contains=@PugSyntax,vueTag
|
||||||
|
|
||||||
syntax region coffeeVueScript fold
|
syntax region coffeeVueScript fold
|
||||||
\ start=+<script[^>]*lang="coffee"[^>]*>+
|
\ start=+<script[^>]*lang=["']coffee["'][^>]*>+
|
||||||
\ end=+</script>+
|
\ end=+</script>+
|
||||||
\ keepend contains=@htmlCoffeeScript,jsImport,jsExport,vueTag
|
\ keepend contains=@htmlCoffeeScript,jsImport,jsExport,vueTag
|
||||||
|
|
||||||
@@ -175,15 +175,15 @@ syntax region typescriptVueScript fold
|
|||||||
\ keepend contains=@TypeScript,vueTag
|
\ keepend contains=@TypeScript,vueTag
|
||||||
|
|
||||||
syntax region cssLessVueStyle fold
|
syntax region cssLessVueStyle fold
|
||||||
\ start=+<style[^>]*lang="less"[^>]*>+
|
\ 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"[^>]*>+
|
\ 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"[^>]*>+
|
\ start=+<style[^>]*lang=["']scss["'][^>]*>+
|
||||||
\ end=+</style>+
|
\ end=+</style>+
|
||||||
\ keepend contains=@SassSyntax,vueTag
|
\ keepend contains=@SassSyntax,vueTag
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user