-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnumpy.tmLanguage.json
More file actions
41 lines (41 loc) · 1.59 KB
/
numpy.tmLanguage.json
File metadata and controls
41 lines (41 loc) · 1.59 KB
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
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "Python Docstring (numpy)",
"scopeName": "source.docstring.numpy.python",
"injectionSelector": "L:string.quoted.docstring.multi.python, L:string.quoted.docstring.raw.multi.python",
"patterns": [
{
"comment": "Variable (numpy)",
"captures": {
"1": {
"name": "punctuation.definition.tag.begin.docstring.python, docstring.variable.begin.numpy.python"
},
"2": {
"name": "entity.name.variable.docstring.python, docstring.variable.placeholder.numpy.python"
},
"3": {
"name": "punctuation.definition.tag.end.docstring.python, docstring.variable.end.numpy.python"
}
},
"match": "(?:^\\s*)((?:-\\s*)?)((?:(?:\\*\\*|\\*)?[a-zA-Z_a-zA-Z_\u0370-\u03ff\u1f00-\u1fff]\\w*(?:\\[.*\\])?(?:\\s*,\\s*(?=[a-zA-Z_a-zA-Z_\u0370-\u03ff\u1f00-\u1fff]))?)+)((?:\\s+:\\s+.*)?)(?:$)",
"name": "docstring.variable.numpy.python"
},
{
"comment": "Inline type (numpy)",
"captures": {
"1": {
"name": "punctuation.definition.tag.begin.docstring.python, docstring.type.begin.numpy.python"
},
"2": {
"name": "punctuation.definition.tag.placeholder.docstring.python, docstring.type.placeholder.numpy.python"
},
"3": {
"name": "punctuation.definition.tag.end.docstring.python, docstring.type.end.numpy.python"
}
},
"match": "(?<=\"{3}|\\'{3})()([^\\s:]+)(:)(?=\\s)",
"name": "docstring.type.numpy.python"
}
],
"repository": {}
}