]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/ini.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / ini.yaml
index a6ab79abf3ea7fe4ebac8f8e1913cddcdf84f659..902d66a3b7ee2c6e0a3db3abd16240ca3b645de8 100644 (file)
@@ -1,8 +1,7 @@
 filetype: ini
 
-detect: 
-    filename: "\\.(ini|desktop|lfl|override)$|(mimeapps\\.list|pinforc|setup\\.cfg)$|weechat/.+\\.conf$"
-    header: "^\\[[A-Za-z]+\\]$"
+detect:
+    filename: "\\.(ini|desktop|lfl|override|tscn|tres)$|(mimeapps\\.list|pinforc|setup\\.cfg|project\\.godot)$|weechat/.+\\.conf$"
 
 rules:
     - constant.bool.true: "\\btrue\\b"
@@ -10,5 +9,15 @@ rules:
     - identifier: "^[[:space:]]*[^=]*="
     - special: "^[[:space:]]*\\[.*\\]$"
     - statement: "[=;]"
-    - comment: "(^|[[:space:]])#([^{].*)?$"
     - constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
+
+    - comment:
+        start: "#"
+        end: "$"
+        rules:
+            - todo: "(TODO|XXX|FIXME):?"
+    - comment:
+        start: ";"
+        end: "$"
+        rules:
+            - todo: "(TODO|XXX|FIXME):?"