-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgit-commit.yaml-tmLanguage
More file actions
44 lines (41 loc) · 1.29 KB
/
git-commit.yaml-tmLanguage
File metadata and controls
44 lines (41 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Git Commit
scopeName: text.git-commit
fileTypes:
- COMMIT_EDITMSG
- MERGE_MSG
patterns:
- include: '#main'
repository:
main:
patterns:
- include: '#comment'
comment:
name: comment.line.git-commit
begin: '^#'
end: '$'
beginCaptures:
'0':
name: punctuation.definition.comment.git-commit
patterns:
- name: meta.generic.variable.other.modified.git-commit
match: '(modified)(:) +(.+)'
captures:
'1': { name: markup.changed.git-commit }
'3': { name: markup.bold.filename.git-commit }
- name: meta.generic.variable.other.renamed.git-commit
match: '(renamed)(:) +(.+)(->)(.+)'
captures:
'1': { name: markup.changed.git-commit }
'3': { name: markup.bold.filename.git-commit }
'4': { name: markup.raw.token.git-commit }
'5': { name: markup.bold.filename.git-commit }
- name: meta.generic.variable.other.deleted.git-commit
match: '(deleted)(:) +(.+)'
captures:
'1': { name: markup.deleted.git-commit }
'3': { name: markup.bold.filename.git-commit }
- name: meta.generic.variable.other.new-file.git-commit
match: '(new file)(:) +(.+)'
captures:
'1': { name: markup.inserted.git-commit }
'3': { name: markup.bold.filename.git-commit }