refactor: Make syntax definition more similar to indent definition

This commit is contained in:
Adriaan Zonnenberg
2019-07-24 23:39:08 +02:00
parent 158390bf7a
commit 00d77ae375
2 changed files with 39 additions and 42 deletions

View 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