* add vue single-file component syntax highlighting * remove unnecessary new line
This commit is contained in:
parent
4f35eed615
commit
c11af1c19c
1 changed files with 24 additions and 0 deletions
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"
|
||||
|
Loading…
Reference in a new issue