Created
December 20, 2017 16:48
-
-
Save PowerKiKi/eee7387b10ce2785750b7b6edb458afd to your computer and use it in GitHub Desktop.
Nano configuration for git commit message (~/.nanorc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax "gitcommit" "COMMIT_EDITMSG$" | |
color white "#.*" | |
color green "#.(new file|modified|deleted|renamed).*" | |
color yellow start="# Changes.*" end="# Changed.*" | |
color cyan start="# Untracked.*" end="diff" | |
color cyan start="# Untracked.*" end="$$" | |
color brightred "^deleted file mode .*" | |
color brightgreen "^\+.*" | |
color brightred "^-.*" | |
color brightyellow "^(diff|index|---|\+\+\+).*" | |
color brightmagenta "@@.*@@" | |
color white "# (Change[ds]|Untracked) .*" | |
color white "#.*\(use .*" | |
color white "^#" | |
# overlong lines which are not comments | |
color brightred "^[^#].{80,}.+$" | |
# issue number with optionnal closing keyword: https://help.github.com/articles/closing-issues-using-keywords/ | |
icolor yellow "((close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved) )?#[1234567890]+" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment