mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
add syntax highlight for *.vue component files
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -665,3 +665,6 @@
|
|||||||
[submodule "vendor/grammars/atom-language-purescript"]
|
[submodule "vendor/grammars/atom-language-purescript"]
|
||||||
path = vendor/grammars/atom-language-purescript
|
path = vendor/grammars/atom-language-purescript
|
||||||
url = https://github.com/freebroccolo/atom-language-purescript
|
url = https://github.com/freebroccolo/atom-language-purescript
|
||||||
|
[submodule "vendor/grammars/vue-syntax-highlight"]
|
||||||
|
path = vendor/grammars/vue-syntax-highlight
|
||||||
|
url = https://github.com/vuejs/vue-syntax-highlight
|
||||||
|
|||||||
@@ -544,6 +544,8 @@ vendor/grammars/turtle.tmbundle:
|
|||||||
- source.turtle
|
- source.turtle
|
||||||
vendor/grammars/verilog.tmbundle:
|
vendor/grammars/verilog.tmbundle:
|
||||||
- source.verilog
|
- source.verilog
|
||||||
|
vendor/grammars/vue-syntax-highlight:
|
||||||
|
- text.html.vue
|
||||||
vendor/grammars/x86-assembly-textmate-bundle:
|
vendor/grammars/x86-assembly-textmate-bundle:
|
||||||
- source.asm.x86
|
- source.asm.x86
|
||||||
vendor/grammars/xc.tmbundle/:
|
vendor/grammars/xc.tmbundle/:
|
||||||
|
|||||||
@@ -3516,6 +3516,14 @@ Volt:
|
|||||||
tm_scope: source.d
|
tm_scope: source.d
|
||||||
ace_mode: d
|
ace_mode: d
|
||||||
|
|
||||||
|
Vue:
|
||||||
|
type: markup
|
||||||
|
color: "#2c3e50"
|
||||||
|
extensions:
|
||||||
|
- .vue
|
||||||
|
tm_scope: text.html.vue
|
||||||
|
ace_mode: html
|
||||||
|
|
||||||
Web Ontology Language:
|
Web Ontology Language:
|
||||||
type: markup
|
type: markup
|
||||||
color: "#9cc9dd"
|
color: "#9cc9dd"
|
||||||
|
|||||||
21
samples/Vue/basic.vue
Normal file
21
samples/Vue/basic.vue
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
<style>
|
||||||
|
.red {
|
||||||
|
color: #f00;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<h2 v-class="red">{{msg}}</h2>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
module.exports = {
|
||||||
|
data: function () {
|
||||||
|
return {
|
||||||
|
msg: 'Hello from Vue!'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
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>
|
||||||
1
vendor/grammars/vue-syntax-highlight
vendored
Submodule
1
vendor/grammars/vue-syntax-highlight
vendored
Submodule
Submodule vendor/grammars/vue-syntax-highlight added at 6cd3ee1743
Reference in New Issue
Block a user