]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/caddyfile.yaml
Merge pull request #1412 from tommyshem/batSyntaxHighlighting
[micro.git] / runtime / syntax / caddyfile.yaml
index fc11c8b1606e4e960bc3b8d64d0c52731a1e53b0..cb2182129064c8686bea8a03915084dff417a2b5 100644 (file)
@@ -1,6 +1,6 @@
 filetype: caddyfile
 
-detect: 
+detect:
     filename: "Caddyfile"
 
 rules:
@@ -9,11 +9,15 @@ rules:
     - constant.specialChar: "\\s{$"
     - constant.specialChar: "^\\s*}$"
     - constant.string:
-        start: "\\\""
-        end: "\\\""
-        rules: []
+        start: "\""
+        end: "\""
+        skip: "\\\\."
+        rules:
+            - constant.specialChar: "\\\\."
 
     - preproc: "\\{(\\w+|\\$\\w+|%\\w+%)\\}"
-    - comment: "#.*"
-    - indent-char: "([[:space:]]{2,}|\\t){$"
-    - indent-char: "[[:space:]]+$"
+    - comment:
+        start: "#"
+        end: "$"
+        rules: []
+