mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-05 22:50:21 +09:00
Improve new syntax files and fix a region glitch
This commit is contained in:
@@ -1,20 +1,28 @@
|
||||
filetype: git-commit
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "COMMIT_EDITMSG|TAG_EDITMSG"
|
||||
|
||||
rules:
|
||||
# Commit message
|
||||
- ignore: ".*"
|
||||
- comment: "^#.*"
|
||||
- statement: "#[[:space:]](deleted|modified|new file|renamed):[[:space:]].*"
|
||||
- statement: "#[[:space:]]deleted:"
|
||||
- statement: "#[[:space:]]modified:"
|
||||
- statement: "#[[:space:]]new file:"
|
||||
- statement: "#[[:space:]]renamed:"
|
||||
# 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: "^# [^/?*:;{}\\\\]+\\.[^/?*:;{}\\\\]+$"
|
||||
- statement: "^#[[:space:]]Changes.*[:]"
|
||||
- statement: "^#[[:space:]]Your branch and '[^']+"
|
||||
- statement: "^#[[:space:]]Your branch and '"
|
||||
- statement: "^#[[:space:]]On branch [^ ]+"
|
||||
- statement: "^#[[:space:]]On branch"
|
||||
- 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: "#"
|
||||
|
||||
Reference in New Issue
Block a user