]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/gentoo-etc-portage.yaml
Merge branch 'diff-gutter' of https://github.com/p-e-w/micro
[micro.git] / runtime / syntax / gentoo-etc-portage.yaml
1 filetype: etc-portage
2
3 detect:
4     filename: "\\.(keywords|mask|unmask|use)(/.+)?$"
5
6 rules:
7     # Use flags:
8     - constant.bool.false: "[[:space:]]+\\+?[a-zA-Z0-9_-]+"
9     - constant.bool.true: "[[:space:]]+-[a-zA-Z0-9_-]+"
10     # Likely version numbers:
11     - special: "-[[:digit:]].*([[:space:]]|$)"
12     # Accepted arches:
13     - identifier.class: "[~-]?\\b(alpha|amd64|arm|hppa|ia64|mips|ppc|ppc64|s390|sh|sparc|x86|x86-fbsd)\\b"
14     - identifier.class: "[[:space:]][~-]?\\*"
15     # Categories:
16     - statement: "^[[:space:]]*.*/"
17     # Masking regulators:
18     - symbol: "^[[:space:]]*(=|~|<|<=|=<|>|>=|=>)"
19     # Comments:
20     - comment:
21         start: "#"
22         end: "$"
23         rules: []