mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-08-28 04:46:30 -04:00
Fix various bugs in syntax files. Add c++ syntax file. Only save last line's endstate in highlight function.
31 lines
896 B
YAML
31 lines
896 B
YAML
filetype: git-commit
|
|
|
|
detect:
|
|
filename: "COMMIT_EDITMSG|TAG_EDITMSG"
|
|
|
|
rules:
|
|
# Commit message
|
|
- ignore: ".*"
|
|
# Comments
|
|
- comment:
|
|
start: "#"
|
|
end: "$"
|
|
rules: []
|
|
# File changes
|
|
- keyword: "#[[:space:]](deleted|modified|new file|renamed):[[:space:]].*"
|
|
- keyword: "#[[:space:]]deleted:"
|
|
- keyword: "#[[:space:]]modified:"
|
|
- keyword: "#[[:space:]]new file:"
|
|
- keyword: "#[[:space:]]renamed:"
|
|
# Untracked filenames
|
|
- error: "^# [^/?*:;{}\\\\]+\\.[^/?*:;{}\\\\]+$"
|
|
- keyword: "^#[[:space:]]Changes.*[:]"
|
|
- keyword: "^#[[:space:]]Your branch and '[^']+"
|
|
- keyword: "^#[[:space:]]Your branch and '"
|
|
- keyword: "^#[[:space:]]On branch [^ ]+"
|
|
- keyword: "^#[[:space:]]On branch"
|
|
# Recolor hash symbols
|
|
- special: "#"
|
|
# Trailing spaces (+LINT is not ok, git uses tabs)
|
|
- error: "[[:space:]]+$"
|