1 syntax "git-config" "git(config|modules)$|\.git/config$"
3 color brightcyan "\b(true|false)\b"
4 color cyan "^[[:space:]]*[^=]*="
5 color brightmagenta "^[[:space:]]*\[.*\]$"
6 color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
7 color brightblack "(^|[[:space:]])#([^{].*)?$"
8 color ,green "[[:space:]]+$"
11 # This code is free software; you can redistribute it and/or modify it under
12 # the terms of the new BSD License.
14 # Copyright (c) 2010, Sebastian Staudt
16 # A nano configuration file to enable syntax highlighting of some Git specific
17 # files with the GNU nano text editor (http://www.nano-editor.org)
19 syntax "git-commit" "COMMIT_EDITMSG|TAG_EDITMSG"
25 color brightblack "^#.*"
28 color white "#[[:space:]](deleted|modified|new file|renamed):[[:space:]].*"
29 color red "#[[:space:]]deleted:"
30 color green "#[[:space:]]modified:"
31 color brightgreen "#[[:space:]]new file:"
32 color brightblue "#[[:space:]]renamed:"
35 color black "^# [^/?*:;{}\\]+\.[^/?*:;{}\\]+$"
37 color brightmagenta "^#[[:space:]]Changes.*[:]"
38 color brightred "^#[[:space:]]Your branch and '[^']+"
39 color brightblack "^#[[:space:]]Your branch and '"
40 color brightwhite "^#[[:space:]]On branch [^ ]+"
41 color brightblack "^#[[:space:]]On branch"
43 # Recolor hash symbols
45 # Recolor hash symbols
48 # Trailing spaces (+LINT is not ok, git uses tabs)
49 color ,red "[[:space:]]+$"
52 # This syntax format is used for interactive rebasing
53 syntax "git-rebase-todo" "git-rebase-todo"
59 color brightblack "^#.*"
62 color green "^(e|edit) [0-9a-f]{7,40}"
63 color green "^# (e, edit)"
64 color brightgreen "^(f|fixup) [0-9a-f]{7,40}"
65 color brightgreen "^# (f, fixup)"
66 color brightwhite "^(p|pick) [0-9a-f]{7,40}"
67 color brightwhite "^# (p, pick)"
68 color blue "^(r|reword) [0-9a-f]{7,40}"
69 color blue "^# (r, reword)"
70 color brightred "^(s|squash) [0-9a-f]{7,40}"
71 color brightred "^# (s, squash)"
72 color yellow "^(x|exec) [^ ]+ [0-9a-f]{7,40}"
73 color yellow "^# (x, exec)"
75 # Recolor hash symbols
79 color brightblue "[0-9a-f]{7,40}"