mirror of
https://github.com/posva/vim-vue.git
synced 2025-12-06 09:44:22 +08:00
16 lines
441 B
Plaintext
16 lines
441 B
Plaintext
Execute (enable only scss preprocessor):
|
|
let g:vue_pre_processors = ['typescript']
|
|
|
|
Given vue:
|
|
<template lang="pug">
|
|
.some-class
|
|
</template>
|
|
<script lang="typescript">
|
|
@Component({})
|
|
</script>
|
|
|
|
Execute (only scss is highlighted):
|
|
Assert SyntaxOf('.some-class') !~# '^pug', "pug shouldn't be highlighted"
|
|
Assert SyntaxOf('@Component({})') =~# '^typescript', "typescript should be highlighted"
|
|
unlet g:vue_pre_processors
|