]> git.lizzy.rs Git - micro.git/commitdiff
( #1358 ) add vue single-file component syntax highlighting (#1359)
authorPatrick Weingärtner <patrick.weingaertner91@gmail.com>
Fri, 26 Jul 2019 02:57:53 +0000 (04:57 +0200)
committerZachary Yedidia <zyedidia@gmail.com>
Fri, 26 Jul 2019 02:57:53 +0000 (19:57 -0700)
* add vue single-file component syntax highlighting

* remove unnecessary new line

runtime/syntax/vue.yaml [new file with mode: 0644]

diff --git a/runtime/syntax/vue.yaml b/runtime/syntax/vue.yaml
new file mode 100644 (file)
index 0000000..4c1c304
--- /dev/null
@@ -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"
+    
\ No newline at end of file