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