]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/dot.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / dot.yaml
index 4f6e501f36dbe4f8b79c814b4207b61acaede470..cea9a581a0149057ff72f34ca69893c28c707707 100644 (file)
@@ -1,16 +1,29 @@
 filetype: dot
 
-detect: 
+detect:
     filename: "\\.(dot|gv)$"
 
 rules:
-    - type: "\\b(digraph|edge|graph|node|subgraph)\\b"
+    - type:   "\\b(digraph|edge|graph|node|subgraph)\\b"
     - statement: "\\b(arrow(head|size|tail)|(bg|fill|font)?color|center|constraint|decorateP|dir|distortion|font(name|size)|head(clip|label)|height|label(angle|distance|font(color|name|size))?|layer(s)?|margin|mclimit|minlen|name|nodesep|nslimit|ordering|orientation|page(dir)?|peripheries|port_label_distance|rank(dir|sep)?|ratio|regular|rotate|same(head|tail)|shape(file)?|sides|size|skew|style|tail(clip|label)|URL|weight|width)\\b"
-    - symbol: "=|->|--"
-    - constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
-    - comment: "(^|[[:space:]])//.*"
+    - symbol:  "=|->|--"
+
+    - constant.string:
+        start: "\""
+        end: "\""
+        skip: "\\\\."
+        rules:
+            - constant.specialChar: "\\\\."
+
+    - comment:
+        start: "//"
+        end: "$"
+        rules:
+            - todo: "(TODO|XXX|FIXME):?"
+
     - comment:
         start: "/\\*"
         end: "\\*/"
-        rules: []
+        rules:
+            - todo: "(TODO|XXX|FIXME):?"