mirror of
https://github.com/zyedidia/micro.git
synced 2024-10-27 12:37:38 +03:00
8629357c70
It was needlessly highlighting everything that wasn't a comment. Adds keyword detection for Github-esque issue-closing syntax. Adds missing 'd' and 'drop' highlighting in git-rebase-todo
20 lines
463 B
YAML
20 lines
463 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|d(rop)?)\\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: []
|