micro/runtime/syntax/patch.yaml
Jöran Karl 433879046e Improve file detection with signature check capabilities
This allows more complex detection upon regex rules for a certain amount of
lines.
2023-10-26 20:20:02 +02:00

15 lines
267 B
YAML

filetype: patch
detect:
filename: "\\.(patch|diff)$"
signature: "^diff"
rules:
- brightgreen: "^\\+.*"
- green: "^\\+\\+\\+.*"
- brightblue: "^ .*"
- brightred: "^-.*"
- red: "^---.*"
- brightyellow: "^@@.*"
- magenta: "^diff.*"