mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
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.
This commit is contained in:
30
runtime/syntax/git-rebase-todo.yaml
Normal file
30
runtime/syntax/git-rebase-todo.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
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}"
|
||||
Reference in New Issue
Block a user