1 # This code is free software; you can redistribute it and/or modify it under
2 # the terms of the new BSD License.
4 # Copyright (c) 2010, Sebastian Staudt
5 # A nano configuration file to enable syntax highlighting of some Git specific
6 # files with the GNU nano text editor (http://www.nano-editor.org)
8 syntax "git-commit" "COMMIT_EDITMSG|TAG_EDITMSG"
17 color keyword "#[[:space:]](deleted|modified|new file|renamed):[[:space:]].*"
18 color keyword "#[[:space:]]deleted:"
19 color keyword "#[[:space:]]modified:"
20 color keyword "#[[:space:]]new file:"
21 color keyword "#[[:space:]]renamed:"
24 color error "^# [^/?*:;{}\\]+\.[^/?*:;{}\\]+$"
26 color keyword "^#[[:space:]]Changes.*[:]"
27 color keyword "^#[[:space:]]Your branch and '[^']+"
28 color keyword "^#[[:space:]]Your branch and '"
29 color keyword "^#[[:space:]]On branch [^ ]+"
30 color keyword "^#[[:space:]]On branch"
32 # Recolor hash symbols
34 # Recolor hash symbols
37 # Trailing spaces (+LINT is not ok, git uses tabs)
38 color ,error "[[:space:]]+$"