mirror of
https://github.com/scopatz/nanorc
synced 2024-11-30 13:45:53 +01:00
81 lines
2.2 KiB
Plaintext
81 lines
2.2 KiB
Plaintext
syntax "gitconfig" "git(config|modules)$|\.git/config$"
|
|
|
|
color brightcyan "\<(true|false)\>"
|
|
color cyan "^[[:space:]]*[^=]*="
|
|
color brightmagenta "^[[:space:]]*\[.*\]$"
|
|
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
|
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
|
color ,green "[[:space:]]+$"
|
|
color ,red " +"
|
|
|
|
# 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/tag messages" "COMMIT_EDITMSG|TAG_EDITMSG"
|
|
|
|
# Commit message
|
|
color yellow ".*"
|
|
|
|
# Comments
|
|
color brightblack "^#.*"
|
|
|
|
# Files changes
|
|
color white "#[[:space:]](deleted|modified|new file|renamed):[[:space:]].*"
|
|
color red "#[[:space:]]deleted:"
|
|
color green "#[[:space:]]modified:"
|
|
color brightgreen "#[[:space:]]new file:"
|
|
color brightblue "#[[:space:]]renamed:"
|
|
|
|
# Untracked filenames
|
|
color black "^# [^/?*:;{}\\]+\.[^/?*:;{}\\]+$"
|
|
|
|
color brightmagenta "^#[[:space:]]Changes.*[:]"
|
|
color brightred "^#[[:space:]]Your branch and '[^']+"
|
|
color brightblack "^#[[:space:]]Your branch and '"
|
|
color brightwhite "^#[[:space:]]On branch [^ ]+"
|
|
color brightblack "^#[[:space:]]On branch"
|
|
|
|
# Recolor hash symbols
|
|
|
|
# Recolor hash symbols
|
|
color brightblack "#"
|
|
|
|
# Trailing spaces (+LINT is not ok, git uses tabs)
|
|
color ,red "[[:space:]]+$"
|
|
|
|
|
|
# This syntax format is used for interactive rebasing
|
|
syntax "git rebase todo" "git-rebase-todo"
|
|
|
|
# Default
|
|
color yellow ".*"
|
|
|
|
# Comments
|
|
color brightblack "^#.*"
|
|
|
|
# Rebase commands
|
|
color green "^(e|edit) [0-9a-f]{7,40}"
|
|
color green "^# (e, edit)"
|
|
color brightgreen "^(f|fixup) [0-9a-f]{7,40}"
|
|
color brightgreen "^# (f, fixup)"
|
|
color brightwhite "^(p|pick) [0-9a-f]{7,40}"
|
|
color brightwhite "^# (p, pick)"
|
|
color blue "^(r|reword) [0-9a-f]{7,40}"
|
|
color blue "^# (r, reword)"
|
|
color brightred "^(s|squash) [0-9a-f]{7,40}"
|
|
color brightred "^# (s, squash)"
|
|
color yellow "^(x|exec) [^ ]+ [0-9a-f]{7,40}"
|
|
color yellow "^# (x, exec)"
|
|
|
|
# Recolor hash symbols
|
|
color brightblack "#"
|
|
|
|
# Commit IDs
|
|
color brightblue "[0-9a-f]{7,40}"
|
|
|