-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathsource.elvish-transcript.js
More file actions
29 lines (27 loc) · 896 Bytes
/
source.elvish-transcript.js
File metadata and controls
29 lines (27 loc) · 896 Bytes
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
// This is a TextMate grammar distributed by `starry-night`.
// This grammar is developed at
// <https://github.com/elves/elvish>
// and licensed `bsd-2-clause`.
// See <https://github.com/wooorm/starry-night> for more info.
/**
* @import {Grammar} from '@wooorm/starry-night'
*/
/** @type {Grammar} */
const grammar = {
dependencies: ['source.elvish'],
extensions: [],
names: ['elvish-transcript'],
patterns: [
{
begin: '(^|\\G)[~/][^ ]*> ',
contentName: 'meta.embedded.block.elvish',
patterns: [{include: 'source.elvish'}],
while: '(^|\\G) '
},
{match: '(^|\\G)# .* #$', name: 'markup.heading.1.elvish-transcript'},
{match: '(^|\\G)## .* ##$', name: 'markup.heading.2.elvish-transcript'},
{match: '(^|\\G)//.*$', name: 'comment.line.double-slash.elvish-transcript'}
],
scopeName: 'source.elvish-transcript'
}
export default grammar