]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/xml.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / xml.yaml
index 2d435847b811e472ea29b86c74e55e9604ce1936..df4cde8118f7b44c1e2459cade1dddaef55547c0 100644 (file)
@@ -5,16 +5,33 @@ detect:
     header: "<\\?xml.*\\?>"
 
 rules:
-    - comment:
+    - preproc:
         start: "<!DOCTYPE"
         end: "[/]?>"
         rules: []
+
     - comment:
         start: "<!--"
         end: "-->"
         rules: []
-    - identifier:
-        start: "<"
-        end: ">"
-        rules: []
-    - special: "&[^;]*;"
+
+    - symbol.tag:
+        start: "<\\??"
+        end: "\\??>"
+        rules:
+            - identifier:
+                start: " "
+                end: "="
+                rules: []
+            - constant.string:
+                start: "\""
+                end: "\""
+                skip: "\\\\."
+                rules:
+                    - constant.specialChar: "\\\\."
+            - constant.string:
+                start: "'"
+                end: "'"
+                skip: "\\\\."
+                rules:
+                    - constant.specialChar: "\\\\."