mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-06 07:00:24 +09:00
* add vue single-file component syntax highlighting * remove unnecessary new line
This commit is contained in:
committed by
Zachary Yedidia
parent
4f35eed615
commit
c11af1c19c
24
runtime/syntax/vue.yaml
Normal file
24
runtime/syntax/vue.yaml
Normal 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"
|
||||
|
||||
Reference in New Issue
Block a user