]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/gentoo-etc-portage.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / gentoo-etc-portage.yaml
index 4856fc2772870b4a58bb991edf84fb37f04a6b58..300687e60c8badffe7dd8790cf1415560e2ad6b1 100644 (file)
@@ -1,15 +1,23 @@
 filetype: etc-portage
 
-detect: 
-    filename: "\\.(keywords|mask|unmask|use)$"
+detect:
+    filename: "\\.(keywords|mask|unmask|use)(/.+)?$"
 
 rules:
-    - default: "^.+$"
+    # Use flags:
     - constant.bool.false: "[[:space:]]+\\+?[a-zA-Z0-9_-]+"
     - constant.bool.true: "[[:space:]]+-[a-zA-Z0-9_-]+"
+    # Likely version numbers:
     - special: "-[[:digit:]].*([[:space:]]|$)"
+    # Accepted arches:
     - identifier.class: "[~-]?\\b(alpha|amd64|arm|hppa|ia64|mips|ppc|ppc64|s390|sh|sparc|x86|x86-fbsd)\\b"
     - identifier.class: "[[:space:]][~-]?\\*"
+    # Categories:
     - statement: "^[[:space:]]*.*/"
+    # Masking regulators:
     - symbol: "^[[:space:]]*(=|~|<|<=|=<|>|>=|=>)"
-    - comment: "#.*$"
+    # Comments:
+    - comment:
+        start: "#"
+        end: "$"
+        rules: []