runtime/syntax/git-rebase-todo.yaml
raw| 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|b(reak)?|d(rop)?|l(abel)?|t|reset|m(erge)?)\\b" |
| 9 | # Commit IDs |
| 10 | - identifier: "\\b([0-9a-fA-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: [] |