-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
source.changelogs.rpm-spec.js
64 lines (62 loc) · 1.99 KB
/
source.changelogs.rpm-spec.js
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// This is a TextMate grammar distributed by `starry-night`.
// This grammar is licensed `mit`.
// See <https://github.com/wooorm/starry-night> for more info.
/**
* @import {Grammar} from '@wooorm/starry-night'
*/
/** @type {Grammar} */
const grammar = {
extensions: [],
names: [],
patterns: [
{match: '^[*+=-]{30}[+==-]*', name: 'entity.section.name.changelogs'},
{captures: {1: {name: 'comment.changelogs'}}, match: '^[ \\t]*- (.+)'},
{
captures: {
1: {name: 'constant.changelogs'},
2: {name: 'entity.name.changelogs'},
3: {name: 'variable.other.changelogs'},
4: {name: 'constant.numeric.changelogs'}
},
match:
'^(?:\\* )?([a-zA-Z]{3} [a-zA-Z]{3}[ ]+\\d+ \\d+:\\d+:\\d+ [A-Z]+ \\d{4}) - (.*) (<.*>) ([#_a-zA-Z0-9.-]+)$'
},
{
captures: {
1: {name: 'constant.changelogs'},
2: {name: 'entity.name.changelogs'},
3: {name: 'variable.other.changelogs'},
4: {name: 'constant.numeric.changelogs'}
},
match:
'^(?:\\* )?([a-zA-Z]{3} [a-zA-Z]{3}[ ]+\\d+(?: \\d+:\\d+:\\d+ [A-Z]+)? \\d{4}) (.*) (<.*>)(?: -)? ([#a-zA-Z0-9.-]+)?$'
},
{
captures: {
1: {name: 'constant.changelogs'},
2: {name: 'entity.name.changelogs'},
3: {name: 'variable.other.changelogs'},
4: {name: 'constant.numeric.changelogs'}
},
match:
'^(?:\\* )?([a-zA-Z]{3} [a-zA-Z]{3}[ ]+\\d+(?: \\d+:\\d+:\\d+ [A-Z]+)? \\d{4}) (.*) (<.*>)(?: -) (.*)$'
},
{
captures: {
1: {name: 'constant.changelogs'},
2: {name: 'variable.other.changelogs'}
},
match:
'^(?:\\* )?([a-zA-Z]{3} [a-zA-Z]{3}[ ]+\\d+(?: \\d+:\\d+:\\d+ [A-Z]+)? \\d{4})(?: -) (.+@.+)$'
},
{
captures: {
1: {name: 'constant.changelogs'},
2: {name: 'variable.other.changelogs'}
},
match: '^(?:\\* )?([a-zA-Z]{3} [a-zA-Z]+[ ]+\\d+ \\d{4}) (.+@.+)$'
}
],
scopeName: 'source.changelogs.rpm-spec'
}
export default grammar