]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/git-commit.yaml
Merge pull request #942 from motet-a/javascript-syntax
[micro.git] / runtime / syntax / git-commit.yaml
1 filetype: git-commit
2
3 detect:
4     filename: "COMMIT_EDITMSG|TAG_EDITMSG"
5
6 rules:
7     # Commit message
8     - ignore: ".*"
9     # Comments
10     - comment:
11         start: "^#"
12         end: "$"
13         rules: []
14     # File changes
15     - type.keyword: "#[[:space:]](deleted|modified|new file|renamed):[[:space:]].*"
16     - type.keyword: "#[[:space:]]deleted:"
17     - type.keyword: "#[[:space:]]modified:"
18     - type.keyword: "#[[:space:]]new file:"
19     - type.keyword: "#[[:space:]]renamed:"
20     # Untracked filenames
21     - error: "^#        [^/?*:;{}\\\\]+\\.[^/?*:;{}\\\\]+$"
22     - type.keyword: "^#[[:space:]]Changes.*[:]"
23     - type.keyword: "^#[[:space:]]Your branch and '[^']+"
24     - type.keyword: "^#[[:space:]]Your branch and '"
25     - type.keyword: "^#[[:space:]]On branch [^ ]+"
26     - type.keyword: "^#[[:space:]]On branch"
27     # Recolor hash symbols
28     - special: "#"
29