mirror of
https://github.com/posva/vim-vue.git
synced 2025-12-07 01:54:27 +08:00
refactor: Make syntax definition more similar to indent definition
This commit is contained in:
15
test/test_pre_processor_option.vader
Normal file
15
test/test_pre_processor_option.vader
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
Reference in New Issue
Block a user