]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/git-commit.micro
Update yaml header
[micro.git] / runtime / syntax / git-commit.micro
1 # This code is free software; you can redistribute it and/or modify it under
2 # the terms of the new BSD License.
3 #
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)
7 #
8 syntax "git-commit" "COMMIT_EDITMSG|TAG_EDITMSG"
9
10 # Commit message
11 color ignore ".*"
12
13 # Comments
14 color comment "^#.*"
15
16 # Files changes
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:"
22
23 # Untracked filenames
24 color error "^# [^/?*:;{}\\]+\.[^/?*:;{}\\]+$"
25
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"
31
32 # Recolor hash symbols
33
34 # Recolor hash symbols
35 color special "#"
36
37 # Trailing spaces (+LINT is not ok, git uses tabs)
38 color ,error "[[:space:]]+$"