micro/runtime/syntax/git-commit.micro

39 lines
1.1 KiB
Text
Raw Normal View History

2016-03-21 19:16:02 +03: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)
#
syntax "git-commit" "COMMIT_EDITMSG|TAG_EDITMSG"
# Commit message
2016-04-08 16:22:36 +03:00
color ignore ".*"
2016-03-21 19:16:02 +03:00
# Comments
2016-04-08 16:22:36 +03:00
color comment "^#.*"
2016-03-21 19:16:02 +03:00
# Files changes
2016-04-08 16:22:36 +03:00
color keyword "#[[:space:]](deleted|modified|new file|renamed):[[:space:]].*"
color keyword "#[[:space:]]deleted:"
color keyword "#[[:space:]]modified:"
color keyword "#[[:space:]]new file:"
color keyword "#[[:space:]]renamed:"
2016-03-21 19:16:02 +03:00
# Untracked filenames
2016-04-08 16:22:36 +03:00
color error "^# [^/?*:;{}\\]+\.[^/?*:;{}\\]+$"
2016-03-21 19:16:02 +03:00
2016-04-08 16:22:36 +03:00
color keyword "^#[[:space:]]Changes.*[:]"
color keyword "^#[[:space:]]Your branch and '[^']+"
color keyword "^#[[:space:]]Your branch and '"
color keyword "^#[[:space:]]On branch [^ ]+"
color keyword "^#[[:space:]]On branch"
2016-03-21 19:16:02 +03:00
# Recolor hash symbols
# Recolor hash symbols
2016-04-08 16:22:36 +03:00
color special "#"
2016-03-21 19:16:02 +03:00
# Trailing spaces (+LINT is not ok, git uses tabs)
2016-04-08 16:22:36 +03:00
color ,error "[[:space:]]+$"