2566: Add a rudimentary json regex to get at information like `endLine` r=matklad a=oli-obk



Co-authored-by: Oliver Scherer <github35764891676564198441@oli-obk.de>
This commit is contained in:
bors[bot] 2019-12-15 16:20:13 +00:00 committed by GitHub
commit 4c1b2b9218
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -313,6 +313,20 @@
"column": 3
}
]
},
{
"name": "rustc-json",
"patterns": [
{
"regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
"message": 1,
"file": 2,
"line": 3,
"endLine": 4,
"column": 5,
"endColumn": 6
}
]
}
],
"problemMatchers": [
@ -324,6 +338,14 @@
],
"pattern": "$rustc"
},
{
"name": "rustc-json",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": "$rustc-json"
},
{
"name": "rustc-watch",
"fileLocation": [