Skip to content

Commit 389e90b

Browse files
authored
Fix Crystal build (#60)
* Fix Crystal build It now successfuly builds a file with Sublime builds feature (found at Tools -> Build) * Colorless output on building * Better file_regex match on build Not so smart with macros, though * Fix build on Windows (in theory) * Quiet builds by default
1 parent 2d313b5 commit 389e90b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Crystal.sublime-build

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"cmd": ["crystal", "\"$file\""],
3-
"shell": true,
4-
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
2+
"cmd": ["crystal", "run", "--no-color", "$file"],
3+
"file_regex": "^Error in (?<filename>.+\\.cr):(?<line_number>[0-9]*):?(?<column_number>[0-9]*): (?<message>.+)$",
54
"selector": "source.crystal",
5+
"quiet": true,
66
"windows": {
7-
"cmd": ["bash", "-c", "crystal \"$file_name\""]
7+
"cmd": ["bash", "-c", "crystal", "run", "--no-color", "$file"]
88
}
99
}

0 commit comments

Comments
 (0)