nano: Add syntax highlighting for git commit messages
This commit is contained in:
parent
543961063e
commit
1799f591d9
@ -1,3 +1,5 @@
|
||||
# Configs
|
||||
|
||||
Unless otherwise noted, these files are to be placed in the `.config` directory.
|
||||
|
||||
Files in `etc` go into `/etc`
|
||||
|
25
etc/nanorc
Normal file
25
etc/nanorc
Normal file
@ -0,0 +1,25 @@
|
||||
# include "/etc/nanorc.d/gitcommit.nanorc"
|
||||
|
||||
## syntax highlighting for git commit messages of KDE projects
|
||||
syntax "patch" ".git/COMMIT_EDITMSG$"
|
||||
|
||||
# overlong lines
|
||||
color brightred "^.{70,}.+$"
|
||||
|
||||
# KDE commit hook keywords, see: http://community.kde.org/Sysadmin/GitKdeOrgManual#Commit_hook_keywords
|
||||
color yellow "^(FEATURE|BUG|CCBUG|FIXED-IN|CCMAIL|REVIEW|GUI|DIGEST):.*$"
|
||||
color yellow "(SVN_SILENT|GIT_SILENT|SVN_MERGE)"
|
||||
|
||||
# comment
|
||||
color blue "^#.*$"
|
||||
|
||||
# special comment lines
|
||||
color green "^# Changes to be committed:"
|
||||
color red "^# Changes not staged for commit:"
|
||||
color brightblue "^# Untracked files:"
|
||||
color brightblue "^# On branch .+$"
|
||||
color brightblue "^# Your branch is ahead of .+$"
|
||||
|
||||
# diff files
|
||||
# meh - cannot match against \t ... should be: ^#\t.*$
|
||||
color cyan "^#[^ a-zA-Z0-9][^ ].*$"
|
Loading…
Reference in New Issue
Block a user