-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
source.julia.console.js
41 lines (39 loc) · 1.08 KB
/
source.julia.console.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
// This is a TextMate grammar distributed by `starry-night`.
// This grammar is developed at
// <https://github.com/JuliaEditorSupport/atom-language-julia>
// and licensed `mit`.
// See <https://github.com/wooorm/starry-night> for more info.
/**
* @import {Grammar} from '@wooorm/starry-night'
*/
/** @type {Grammar} */
const grammar = {
dependencies: ['source.julia', 'source.shell'],
extensions: [],
names: ['julia-repl'],
patterns: [
{
captures: {
1: {name: 'punctuation.separator.prompt.julia.console'},
2: {patterns: [{include: 'source.julia'}]}
},
match: '^(julia>|\\.{3}|In \\[\\d+\\]:) (.+)$'
},
{
captures: {
1: {name: 'punctuation.separator.prompt.shell.julia.console'},
2: {patterns: [{include: 'source.shell'}]}
},
match: '^(shell>) (.+)$'
},
{
captures: {
1: {name: 'punctuation.separator.prompt.help.julia.console'},
2: {patterns: [{include: 'source.julia'}]}
},
match: '^(help\\?>) (.+)$'
}
],
scopeName: 'source.julia.console'
}
export default grammar