2017-02-18 23:17:07 +03:00
|
|
|
filetype: git-commit
|
|
|
|
|
2017-03-21 22:07:39 +03:00
|
|
|
detect:
|
2022-09-16 21:27:38 +03:00
|
|
|
filename: "^(.*[\\/])?(COMMIT_EDITMSG|TAG_EDITMSG|MERGE_MSG)$"
|
2017-02-18 23:17:07 +03:00
|
|
|
|
|
|
|
rules:
|
2017-03-21 22:07:39 +03:00
|
|
|
# File changes
|
2017-09-14 01:00:47 +03:00
|
|
|
- type.keyword: "#[[:space:]](deleted|modified|new file|renamed):[[:space:]].*"
|
|
|
|
- type.keyword: "#[[:space:]]deleted:"
|
|
|
|
- type.keyword: "#[[:space:]]modified:"
|
|
|
|
- type.keyword: "#[[:space:]]new file:"
|
|
|
|
- type.keyword: "#[[:space:]]renamed:"
|
|
|
|
- type.keyword: "^#[[:space:]]Changes.*[:]"
|
|
|
|
- type.keyword: "^#[[:space:]]Your branch and '[^']+"
|
|
|
|
- type.keyword: "^#[[:space:]]Your branch and '"
|
|
|
|
- type.keyword: "^#[[:space:]]On branch [^ ]+"
|
|
|
|
- type.keyword: "^#[[:space:]]On branch"
|
2018-01-05 11:35:11 +03:00
|
|
|
# Color keywords for closing issues (such as on Github)
|
|
|
|
- type.keyword: "\\b(?i)((fix(es|ed)?|close(s|d)?) #[0-9]+)\\b"
|
2017-09-14 01:00:47 +03:00
|
|
|
|
2018-01-05 11:35:11 +03:00
|
|
|
# Comments
|
|
|
|
- comment.line:
|
|
|
|
start: "^#"
|
|
|
|
end: "$"
|
|
|
|
rules: []
|
2019-05-22 03:26:06 +03:00
|
|
|
|
|
|
|
# Diffs (i.e. git commit --verbose)
|
|
|
|
- default:
|
2020-04-05 21:04:36 +03:00
|
|
|
start: "^diff --git"
|
2019-05-22 03:26:06 +03:00
|
|
|
# Diff output puts a space before file contents on each line so this
|
|
|
|
# should never match valid diff output and extend highlighting to the
|
|
|
|
# end of the file
|
|
|
|
end: "^ENDOFFILE"
|
|
|
|
limit-group: "magenta"
|
|
|
|
rules:
|
|
|
|
- include: "patch"
|