Skip to content

Commit

Permalink
Fix Crystal build (#60)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
vladfaust committed Jan 21, 2019
1 parent 2d313b5 commit 389e90b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Crystal.sublime-build
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"cmd": ["crystal", "\"$file\""],
"shell": true,
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"cmd": ["crystal", "run", "--no-color", "$file"],
"file_regex": "^Error in (?<filename>.+\\.cr):(?<line_number>[0-9]*):?(?<column_number>[0-9]*): (?<message>.+)$",
"selector": "source.crystal",
"quiet": true,
"windows": {
"cmd": ["bash", "-c", "crystal \"$file_name\""]
"cmd": ["bash", "-c", "crystal", "run", "--no-color", "$file"]
}
}

0 comments on commit 389e90b

Please sign in to comment.