forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpip-requirements.tmLanguage.json
More file actions
77 lines (77 loc) · 2.33 KB
/
pip-requirements.tmLanguage.json
File metadata and controls
77 lines (77 loc) · 2.33 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "pip requirements",
"scopeName": "source.pip-requirements",
"patterns": [
{
"explanation": "Line continuation",
"match": "\\s*\\\\s*$",
"name": "constant.character.escape"
},
{
"match": "#.*",
"name": "comment.line.number-sign"
},
{
"begin": "'",
"end": "'",
"name": "string.quoted.single"
},
{
"begin": "\"",
"end": "\"",
"name": "string.quoted.double"
},
{
"match": "/?(\\S+/)+\\S*",
"name": "string.path"
},
{
"explanation": "project name",
"match": "^\\s*([A-Za-z0-9][A-Za-z0-9._-]*[A-Za-z0-9]|[A-Za-z0-9])",
"captures": {
"1": {
"name": "entity.name.class"
}
}
},
{
"explanation": "extras",
"match": "\\[([^\\]]+)\\]",
"captures": {
"1": {
"name": "entity.name.tag"
}
}
},
{
"explanation": "version specification",
"match": "(<|<=|!=|==|>=|>|~=|===)\\s*([\\w.*+!-]+)",
"captures": {
"1": {
"name": "keyword.operator.comparison"
},
"2": {
"name": "constant.numeric"
}
}
},
{
"explanation": "environment markers",
"match": ";\\s*(python_version|python_full_version|os_name|sys_platform|platform_release|platform_system|platform_version|platform_machine|platform_python_implementation|implementation_name|implementation_version|extra)\\s*(<|<=|!=|==|>=|>|~=|===)",
"captures": {
"1": {
"name": "entity.name.selector"
},
"2": {
"name": "keyword.operator.comparison"
}
}
},
{
"explanation": "command-line options (e.g. `--no-links` or `-c`)",
"match": "-[^\\s=]+",
"name": "entity.other.attribute-name"
}
]
}