aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorOliver Scherer <[email protected]>2019-12-15 16:12:52 +0000
committerOliver Scherer <[email protected]>2019-12-15 16:12:52 +0000
commiteed57dcded5eb661d05c23a642ca03f9b87391fa (patch)
tree5303c5e48a1efe65a4987d3ae932f84d7f512a1d /editors
parent6cbd8a4a4bbca8a7656df9f3ef849acebbf9ef9b (diff)
Add a rudimentary json regex to get at information like `endLine`
Diffstat (limited to 'editors')
-rw-r--r--editors/code/package.json20
1 files changed, 20 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 43db61a8b..ebb1b4a98 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -313,6 +313,18 @@
313 "column": 3 313 "column": 3
314 } 314 }
315 ] 315 ]
316 },
317 {
318 "name": "rustc-json",
319 "patterns": [{
320 "regexp": "^.*\"message\":{\"message\":\"([^\"]*).*?\"file_name\":\"([^\"]+).*?\"line_start\":(\\d+).*?\"line_end\":(\\d+).*?\"column_start\":(\\d+).*?\"column_end\":(\\d+).*}$",
321 "message": 1,
322 "file": 2,
323 "line": 3,
324 "endLine": 4,
325 "column": 5,
326 "endColumn": 6
327 }]
316 } 328 }
317 ], 329 ],
318 "problemMatchers": [ 330 "problemMatchers": [
@@ -325,6 +337,14 @@
325 "pattern": "$rustc" 337 "pattern": "$rustc"
326 }, 338 },
327 { 339 {
340 "name": "rustc-json",
341 "fileLocation": [
342 "relative",
343 "${workspaceRoot}"
344 ],
345 "pattern": "$rustc-json"
346 },
347 {
328 "name": "rustc-watch", 348 "name": "rustc-watch",
329 "fileLocation": [ 349 "fileLocation": [
330 "relative", 350 "relative",