forked from wooorm/starry-night
-
Notifications
You must be signed in to change notification settings - Fork 0
/
source.cuesheet.js
38 lines (37 loc) · 1.19 KB
/
source.cuesheet.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
// This is a TextMate grammar distributed by `starry-night`.
// This grammar is developed at
// <https://github.com/relikd/CUE-Sheet_sublime>
// and licensed `mit`.
// See <https://github.com/wooorm/starry-night> for more info.
/** @type {import('../lib/index.js').Grammar} */
const grammar = {
extensions: [],
names: ['cue-sheet'],
patterns: [
{
match:
'\\b(CATALOG|CDTEXTFILE|FILE|FLAGS|INDEX|ISRC|PERFORMER|(POST|PRE)GAP|REM (GENRE|DATE|DISCID|DISCNUMBER|TOTALDISCS|COMMENT)|SONGWRITER|TITLE|TRACK)\\b',
name: 'keyword'
},
{
match: '\\b(BINARY|MOTOROLA|AIFF|WAVE|MP3)\\w*\\b',
name: 'constant.other'
},
{match: '\\b(4CH|DCP|PRE|SCMS)\\w*\\b', name: 'constant.other'},
{
match:
'\\b(AUDIO|CDG|MODE(1/(2048|2336)|2/(2336|2352))|CDI/23(36|52))\\w*\\b',
name: 'constant.other'
},
{match: '\\b[0-9]{2}:[0-9]{2}:[0-9]{2}\\b', name: 'constant.numeric'},
{
begin: '"',
beginCaptures: {0: {name: 'punctuation.definition.string.begin'}},
end: '"',
endCaptures: {0: {name: 'punctuation.definition.string.end'}},
name: 'variable.parameter'
}
],
scopeName: 'source.cuesheet'
}
export default grammar