mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-05 14:40:20 +09:00
79 lines
2.1 KiB
Plaintext
79 lines
2.1 KiB
Plaintext
syntax "git-config" "git(config|modules)$|\.git/config$"
|
|
|
|
color constant "\<(true|false)\>"
|
|
color keyword "^[[:space:]]*[^=]*="
|
|
color constant "^[[:space:]]*\[.*\]$"
|
|
color constant ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
|
color comment "(^|[[:space:]])#([^{].*)?$"
|
|
|
|
# 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
|
|
color ignore ".*"
|
|
|
|
# Comments
|
|
color comment "^#.*"
|
|
|
|
# Files changes
|
|
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:"
|
|
|
|
# Untracked filenames
|
|
color error "^# [^/?*:;{}\\]+\.[^/?*:;{}\\]+$"
|
|
|
|
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"
|
|
|
|
# Recolor hash symbols
|
|
|
|
# Recolor hash symbols
|
|
color special "#"
|
|
|
|
# Trailing spaces (+LINT is not ok, git uses tabs)
|
|
color ,error "[[:space:]]+$"
|
|
|
|
|
|
# This syntax format is used for interactive rebasing
|
|
syntax "git-rebase-todo" "git-rebase-todo"
|
|
|
|
# Default
|
|
color ignore ".*"
|
|
|
|
# Comments
|
|
color comment "^#.*"
|
|
|
|
# Rebase commands
|
|
color keyword "^(e|edit) [0-9a-f]{7,40}"
|
|
color keyword "^# (e, edit)"
|
|
color keyword "^(f|fixup) [0-9a-f]{7,40}"
|
|
color keyword "^# (f, fixup)"
|
|
color keyword "^(p|pick) [0-9a-f]{7,40}"
|
|
color keyword "^# (p, pick)"
|
|
color keyword "^(r|reword) [0-9a-f]{7,40}"
|
|
color keyword "^# (r, reword)"
|
|
color keyword "^(s|squash) [0-9a-f]{7,40}"
|
|
color keyword "^# (s, squash)"
|
|
color keyword "^(x|exec) [^ ]+ [0-9a-f]{7,40}"
|
|
color keyword "^# (x, exec)"
|
|
|
|
# Recolor hash symbols
|
|
color special "#"
|
|
|
|
# Commit IDs
|
|
color identifier "[0-9a-f]{7,40}"
|
|
|