forked from kemayo/sublime-text-git
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Git Graph.JSON-tmLanguage
31 lines (31 loc) · 1.11 KB
/
Git Graph.JSON-tmLanguage
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
{ "name": "Git Graph",
"scopeName": "text.git-graph",
"fileTypes": ["git-graph"],
"patterns": [
{ "match": "^([| *\\\\]+)([0-9a-f]{4,40}) (.*?) (\\d{4}-\\d\\d-\\d\\d \\d\\d:\\d\\d:\\d\\d [+-]\\d{4}) (?:\\(((?:[a-zA-Z0-9._\\-\\/]+(?:, )?)+)\\) )?",
"name": "log-entry.git-graph",
"captures": {
"1": {"name": "comment.git-graph" },
"2": {"name": "string.git-graph" },
"3": {"name": "support.function.git-graph" },
"4": {"name": "constant.numeric.git-graph" },
"5": {"name": "variable.parameter.git-graph" }
}
},
{ "match": "^\\|[\\|_\\/\\\\ ]+\n?$",
"name": "comment.git-graph",
"comment": "lines with no commit details"
},
{ "match": "(?:[Ff]ix(?:e[ds])?|[Rr]esolve[ds]?|[Cc]lose[ds]?)?\\s*(?:#\\d+|\\[.*?\\])",
"name": "keyword.git-graph",
"comment": "issue numbers"
},
{ "match": "Merge branch '(.*?)' of .*?\n?$",
"name": "comment.git-graph",
"captures": {
"1": {"name": "variable.parameter.git-graph"}
}
}
],
"uuid": "b900521e-af64-471b-aec8-1ecf88aab595"
}