dotfiles-pub/common/nano/syntax/git.nanorc

90 lines
2.7 KiB
Text

syntax "gitconfig" "git(config|modules)$|\.git/config$"
# Resets everything back to plain text coloring.
# Can be used at the start of each theme file.
color white "^.*$"
color brightwhite "\<(true|false)\>"
color red "^[[:space:]]*[^=]*="
color red "^[[:space:]]*\[.*\]$"
color green ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color ,red "[[:space:]]+$"
color brightyellow " + +| + +"
syntax "git-editmsg" "(COMMIT|TAG)_EDITMSG$"
color brightblack "^#.*$"
color red start="# Changes.*" end="# Changed.*"
color red start="# Untracked.*" end="diff"
color red start="# Untracked.*" end="$$"
color white "^[+-].*"
color red "^(diff|index|---|\+\+\+).*"
color red "(Change[ds]|Untracked)"
color red "@@.*@@"
color ,red "[[:space:]]+$"
color brightyellow " + +| + +"
# rainbow indent
color ,brightblack "^[[:space:]]{32}"
color ,black "^[[:space:]]{30}"
color ,brightblack "^[[:space:]]{28}"
color ,black "^[[:space:]]{26}"
color ,brightblack "^[[:space:]]{24}"
color ,black "^[[:space:]]{22}"
color ,brightblack "^[[:space:]]{20}"
color ,black "^[[:space:]]{18}"
color ,brightblack "^[[:space:]]{16}"
color ,black "^[[:space:]]{14}"
color ,brightblack "^[[:space:]]{12}"
color ,black "^[[:space:]]{10}"
color ,brightblack "^[[:space:]]{8}"
color ,black "^[[:space:]]{6}"
color ,brightblack "^[[:space:]]{4}"
color ,black "^[[:space:]]{2}"
syntax "git-rebase" "git-rebase-todo$"
color red "^(edit|fixup|pick|reword|squash|exec|[efprsx])\>"
color brightwhite "\<[0-9a-f]{7,40}\>"
color brightblack "^#.*"
# rainbow indent
color ,brightblack "^[[:space:]]{32}"
color ,black "^[[:space:]]{30}"
color ,brightblack "^[[:space:]]{28}"
color ,black "^[[:space:]]{26}"
color ,brightblack "^[[:space:]]{24}"
color ,black "^[[:space:]]{22}"
color ,brightblack "^[[:space:]]{20}"
color ,black "^[[:space:]]{18}"
color ,brightblack "^[[:space:]]{16}"
color ,black "^[[:space:]]{14}"
color ,brightblack "^[[:space:]]{12}"
color ,black "^[[:space:]]{10}"
color ,brightblack "^[[:space:]]{8}"
color ,black "^[[:space:]]{6}"
color ,brightblack "^[[:space:]]{4}"
color ,black "^[[:space:]]{2}"
syntax "gitignore" ".gitignore$"
icolor brightblue "^[[:space:]]*#.*$"
color ,red "[[:space:]]+$"
# rainbow indent
color ,brightblack "^[[:space:]]{32}"
color ,black "^[[:space:]]{30}"
color ,brightblack "^[[:space:]]{28}"
color ,black "^[[:space:]]{26}"
color ,brightblack "^[[:space:]]{24}"
color ,black "^[[:space:]]{22}"
color ,brightblack "^[[:space:]]{20}"
color ,black "^[[:space:]]{18}"
color ,brightblack "^[[:space:]]{16}"
color ,black "^[[:space:]]{14}"
color ,brightblack "^[[:space:]]{12}"
color ,black "^[[:space:]]{10}"
color ,brightblack "^[[:space:]]{8}"
color ,black "^[[:space:]]{6}"
color ,brightblack "^[[:space:]]{4}"
color ,black "^[[:space:]]{2}"