Improve new syntax files and fix a region glitch

This commit is contained in:
Zachary Yedidia
2017-03-21 15:07:39 -04:00
parent b977bf5cca
commit 54bb99d758
67 changed files with 2941 additions and 642 deletions

View File

@@ -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: "#"