Skip to content

Commit af521a4

Browse files
committed
Update build regex to correctly parse Windows paths.
1 parent 5fdc320 commit af521a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.sublime-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"cmd": ["cargo", "build"],
33
"selector": "source.rust",
4-
"file_regex": "--> ([^:]+):([0-9]+):([0-9]+)$",
4+
"file_regex": "[ \\t]*-->[ \\t]*(.*?):([0-9]+):([0-9]+)$",
55
"syntax": "Cargo.build-language",
66

77
"variants": [

Rust.sublime-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"cmd": ["rustc", "$file"],
33
"selector": "source.rust",
4-
"file_regex": "--> ([^:]+):([0-9]+):([0-9]+)$",
4+
"file_regex": "[ \\t]*-->[ \\t]*(.*?):([0-9]+):([0-9]+)$",
55
"osx":
66
{
77
"path": "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"

0 commit comments

Comments
 (0)