-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
source.procfile.js
48 lines (46 loc) · 1.34 KB
/
source.procfile.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
// This is a TextMate grammar distributed by `starry-night`.
// This grammar is developed at
// <https://github.com/benspaulding/vscode-procfile>
// and licensed `bsd-3-clause`.
// See <https://github.com/wooorm/starry-night> for more info.
/**
* @import {Grammar} from '@wooorm/starry-night'
*/
/** @type {Grammar} */
const grammar = {
dependencies: ['source.shell'],
extensions: [],
names: ['procfile'],
patterns: [{include: '#process'}, {include: '#ignored'}],
repository: {
ignored: {match: '^(?![\\w-]+:).*$', name: 'comment.line.procfile'},
process: {
begin: '^(?=[\\w-]+:)',
contentName: 'meta.function.procfile',
end: '$',
patterns: [
{
begin: '^(?=[\\w-]+:)',
contentName: 'support.function.procfile',
end: '(?<=:)',
patterns: [
{match: '^(web|release)(?=:)', name: 'keyword.heroku.procfile'},
{match: '^[\\w-]+(?=:)', name: 'entity.name.function.procfile'},
{
match: '(?<=[\\w-]):',
name: 'punctuation.separator.colon.procfile'
}
]
},
{
begin: '(?<=[\\w-]:)',
end: '$',
name: 'meta.embedded.line.shell',
patterns: [{include: 'source.shell'}]
}
]
}
},
scopeName: 'source.procfile'
}
export default grammar