mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-29 13:21:01 +00:00
add syntax highlight for *.vue component files
This commit is contained in:
31
samples/Vue/pre-processors.vue
Normal file
31
samples/Vue/pre-processors.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<style lang="stylus">
|
||||
font-stack = Helvetica, sans-serif
|
||||
primary-color = #999
|
||||
body
|
||||
font 100% font-stack
|
||||
color primary-color
|
||||
</style>
|
||||
|
||||
<template lang="jade">
|
||||
div
|
||||
h1 {{msg}}
|
||||
comp-a
|
||||
comp-b
|
||||
</template>
|
||||
|
||||
<script lang="babel">
|
||||
import compA from './components/a.vue'
|
||||
import compB from './components/b.vue'
|
||||
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
msg: 'Hello from Babel!'
|
||||
}
|
||||
},
|
||||
components: {
|
||||
'comp-a': compA,
|
||||
'comp-b': compB
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user