Files
zyedidia.micro/runtime/syntax/git-rebase-todo.yaml
Zachary Yedidia 2fcb40d5a9 Use new syntax highlighting engine from zyedidia/highlight
This changes all the syntax files in the runtime directory and also
changes how syntax highlighting is done from inside micro.
2017-02-26 11:14:35 -05:00

31 lines
766 B
YAML

filetype: git-rebase-todo
detect:
filename: "git-rebase-todo"
rules:
# Default
- ignore: ".*"
# Comments
- comment:
start: "#"
end: "$"
rules: []
# Rebase commands
- keyword: "^(e|edit) [0-9a-f]{7,40}"
- keyword: "^# (e, edit)"
- keyword: "^(f|fixup) [0-9a-f]{7,40}"
- keyword: "^# (f, fixup)"
- keyword: "^(p|pick) [0-9a-f]{7,40}"
- keyword: "^# (p, pick)"
- keyword: "^(r|reword) [0-9a-f]{7,40}"
- keyword: "^# (r, reword)"
- keyword: "^(s|squash) [0-9a-f]{7,40}"
- keyword: "^# (s, squash)"
- keyword: "^(x|exec) [^ ]+ [0-9a-f]{7,40}"
- keyword: "^# (x, exec)"
# Recolor hash symbols
- special: "#"
# Commit IDs
- identifier: "[0-9a-f]{7,40}"