You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
905 B
46 lines
905 B
{
|
|
"scopeName": "text.python.traceback",
|
|
"name": "Python Traceback",
|
|
"fileTypes": [
|
|
"pytb"
|
|
],
|
|
"patterns": [
|
|
{
|
|
"match": "^ File (\"[^\"]+\"), line (\\d+)(?:, in (.+))?$",
|
|
"captures": {
|
|
"1": {
|
|
"name": "string.python.traceback"
|
|
},
|
|
"2": {
|
|
"name": "constant.numeric.python.traceback"
|
|
},
|
|
"3": {
|
|
"name": "entity.name.function.python.traceback"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"match": "^ (.+)$",
|
|
"captures": {
|
|
"1": {
|
|
"patterns": [
|
|
{
|
|
"include": "source.python"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"match": "^([^\\s:]+):(?: (.+))?$",
|
|
"captures": {
|
|
"1": {
|
|
"name": "entity.name.type.class.python.traceback"
|
|
},
|
|
"2": {
|
|
"name": "string.python.traceback"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|