Files
zyedidia.micro/runtime/syntax/git-rebase-todo.yaml
Waldir Pimenta d89db64829 syntax/git-rebase-todo.yaml: support more commands (#2495)
For reference, see the list of supported commands in the help text of git's interactive rebase:
https://github.com/git/git/blob/v2.37.1/rebase-interactive.c#L43-L59
2022-07-17 12:16:35 -07:00

20 lines
498 B
YAML

filetype: git-rebase-todo
detect:
filename: "^(.*[\\/])?git\\-rebase\\-todo$"
rules:
# Rebase commands
- statement: "^(p(ick)?|r(eword)?|e(dit)?|s(quash)?|f(ixup)?|x|exec|b(reak)?|d(rop)?|l(abel)?|t|reset|m(erge)?)\\b"
# Commit IDs
- identifier: "\\b([0-9a-f]{7,40})\\b"
# Color keywords for Github (and others)
- type.keyword: "\\b(?i)((fix(es|ed)?|close(s|d)?) #[0-9]+)\\b"
# Comments
- comment.line:
start: "^#"
end: "$"
rules: []