-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathtext.python.console.js
More file actions
27 lines (25 loc) · 704 Bytes
/
text.python.console.js
File metadata and controls
27 lines (25 loc) · 704 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
// This is a TextMate grammar distributed by `starry-night`.
// This grammar is developed at
// <https://github.com/MagicStack/MagicPython>
// 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.python'],
extensions: [],
names: ['python-console', 'pycon'],
patterns: [
{
captures: {
1: {name: 'punctuation.separator.prompt.python.console'},
2: {patterns: [{include: 'source.python'}]}
},
match: '^(>{3}|\\.{3}|In \\[\\d+\\]:) (.+)$'
}
],
scopeName: 'text.python.console'
}
export default grammar