( #1358 ) add vue single-file component syntax highlighting (#1359)

* add vue single-file component syntax highlighting

* remove unnecessary new line
This commit is contained in:
Patrick Weingärtner 2019-07-26 04:57:53 +02:00 committed by Zachary Yedidia
parent 4f35eed615
commit c11af1c19c

24
runtime/syntax/vue.yaml Normal file
View file

@ -0,0 +1,24 @@
filetype: vue
detect:
filename: "\\.vue$"
rules:
- default:
start: "<template.*?>"
end: "</template.*?>"
rules:
- include: "html5"
- default:
start: "<script.*?>"
end: "</script.*?>"
rules:
- include: "javascript"
- default:
start: "<style.*?>"
end: "</style.*?>"
rules:
- include: "css"