2016-03-02 20:49:58 +01:00
|
|
|
syntax "git-config" "git(config|modules)$|\.git/config$"
|
2013-06-02 13:10:40 +02:00
|
|
|
|
2018-08-09 10:09:19 +02:00
|
|
|
color cyan "\<(true|false)\>"
|
2013-06-02 13:10:40 +02:00
|
|
|
color cyan "^[[:space:]]*[^=]*="
|
2018-08-09 10:09:19 +02:00
|
|
|
color magenta "^[[:space:]]*\[.*\]$"
|
2013-06-02 13:10:40 +02:00
|
|
|
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
2018-08-09 10:09:19 +02:00
|
|
|
color black "(^|[[:space:]])#([^{].*)?$"
|
2013-06-02 13:10:40 +02:00
|
|
|
color ,green "[[:space:]]+$"
|
|
|
|
color ,red " +"
|
|
|
|
|
2013-05-31 22:38:52 +02:00
|
|
|
# This code is free software; you can redistribute it and/or modify it under
|
|
|
|
# the terms of the new BSD License.
|
|
|
|
#
|
|
|
|
# Copyright (c) 2010, Sebastian Staudt
|
|
|
|
|
|
|
|
# A nano configuration file to enable syntax highlighting of some Git specific
|
|
|
|
# files with the GNU nano text editor (http://www.nano-editor.org)
|
|
|
|
#
|
2016-03-02 20:49:58 +01:00
|
|
|
syntax "git-commit" "COMMIT_EDITMSG|TAG_EDITMSG"
|
2013-05-31 22:38:52 +02:00
|
|
|
|
|
|
|
# Commit message
|
2013-06-02 13:10:40 +02:00
|
|
|
color yellow ".*"
|
2013-05-31 22:38:52 +02:00
|
|
|
|
|
|
|
# Comments
|
2018-08-09 10:09:19 +02:00
|
|
|
color black "^#.*"
|
2013-06-01 22:51:09 +02:00
|
|
|
|
2013-05-31 22:38:52 +02:00
|
|
|
# Files changes
|
|
|
|
color white "#[[:space:]](deleted|modified|new file|renamed):[[:space:]].*"
|
|
|
|
color red "#[[:space:]]deleted:"
|
|
|
|
color green "#[[:space:]]modified:"
|
2018-08-09 10:09:19 +02:00
|
|
|
color green "#[[:space:]]new file:"
|
|
|
|
color blue "#[[:space:]]renamed:"
|
2013-06-01 22:51:09 +02:00
|
|
|
|
|
|
|
# Untracked filenames
|
2013-06-02 13:10:40 +02:00
|
|
|
color black "^# [^/?*:;{}\\]+\.[^/?*:;{}\\]+$"
|
|
|
|
|
2018-08-09 10:09:19 +02:00
|
|
|
color magenta "^#[[:space:]]Changes.*[:]"
|
|
|
|
color red "^#[[:space:]]Your branch and '[^']+"
|
|
|
|
color black "^#[[:space:]]Your branch and '"
|
|
|
|
color white "^#[[:space:]]On branch [^ ]+"
|
|
|
|
color black "^#[[:space:]]On branch"
|
2013-06-01 22:51:09 +02:00
|
|
|
|
2013-05-31 22:38:52 +02:00
|
|
|
# Recolor hash symbols
|
|
|
|
|
2013-06-02 13:10:40 +02:00
|
|
|
# Recolor hash symbols
|
2018-08-09 10:09:19 +02:00
|
|
|
color black "#"
|
2013-06-02 13:07:20 +02:00
|
|
|
|
2013-06-02 13:10:40 +02:00
|
|
|
# Trailing spaces (+LINT is not ok, git uses tabs)
|
2016-12-06 22:41:58 +01:00
|
|
|
color ,green "[[:space:]]+$"
|
2013-05-31 22:38:52 +02:00
|
|
|
|
2013-06-02 13:10:40 +02:00
|
|
|
|
2013-05-31 22:38:52 +02:00
|
|
|
# This syntax format is used for interactive rebasing
|
2016-03-02 20:49:58 +01:00
|
|
|
syntax "git-rebase-todo" "git-rebase-todo"
|
2013-05-31 22:38:52 +02:00
|
|
|
|
|
|
|
# Default
|
2013-06-02 13:10:40 +02:00
|
|
|
color yellow ".*"
|
2013-05-31 22:38:52 +02:00
|
|
|
|
|
|
|
# Comments
|
2018-08-09 10:09:19 +02:00
|
|
|
color black "^#.*"
|
2013-05-31 22:38:52 +02:00
|
|
|
|
|
|
|
# Rebase commands
|
2013-06-02 13:10:40 +02:00
|
|
|
color green "^(e|edit) [0-9a-f]{7,40}"
|
|
|
|
color green "^# (e, edit)"
|
2018-08-09 10:09:19 +02:00
|
|
|
color green "^(f|fixup) [0-9a-f]{7,40}"
|
|
|
|
color green "^# (f, fixup)"
|
|
|
|
color white "^(p|pick) [0-9a-f]{7,40}"
|
|
|
|
color white "^# (p, pick)"
|
2013-06-02 13:10:40 +02:00
|
|
|
color blue "^(r|reword) [0-9a-f]{7,40}"
|
|
|
|
color blue "^# (r, reword)"
|
2018-08-09 10:09:19 +02:00
|
|
|
color red "^(s|squash) [0-9a-f]{7,40}"
|
|
|
|
color red "^# (s, squash)"
|
2013-06-02 13:10:40 +02:00
|
|
|
color yellow "^(x|exec) [^ ]+ [0-9a-f]{7,40}"
|
|
|
|
color yellow "^# (x, exec)"
|
2013-05-31 22:38:52 +02:00
|
|
|
|
|
|
|
# Recolor hash symbols
|
2018-08-09 10:09:19 +02:00
|
|
|
color black "#"
|
2013-06-01 22:51:09 +02:00
|
|
|
|
|
|
|
# Commit IDs
|
2018-08-09 10:09:19 +02:00
|
|
|
color blue "[0-9a-f]{7,40}"
|
2013-06-01 22:51:09 +02:00
|
|
|
|