]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/git-rebase-todo.yaml
e2dd588a3d92cf727f182e1787e40bc5f4633f75
[micro.git] / runtime / syntax / git-rebase-todo.yaml
1 filetype: git-rebase-todo
2
3 detect:
4     filename: "^(.*[\\/])?git\\-rebase\\-todo$"
5
6 rules:
7     # Rebase commands
8     - statement: "^(p(ick)?|r(eword)?|e(dit)?|s(quash)?|f(ixup)?|x|exec|d(rop)?)\\b"
9     # Commit IDs
10     - identifier: "\\b([0-9a-f]{7,40})\\b"
11
12     # Color keywords for Github (and others)
13     - type.keyword: "\\b(?i)((fix(es|ed)?|close(s|d)?) #[0-9]+)\\b"
14
15     # Comments
16     - comment.line:
17         start: "^#"
18         end: "$"
19         rules: []