Skip to content

Instantly share code, notes, and snippets.

@remcoder
Created October 1, 2012 19:48
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save remcoder/3814020 to your computer and use it in GitHub Desktop.
Save remcoder/3814020 to your computer and use it in GitHub Desktop.
Sublime Text 2 build system for Typescript
{
"selector": "source.ts",
"cmd": ["tsc", "$file"],
"file_regex": "^(.+?) \\((\\d+),(\\d+)\\)(: .+)$",
"line_regex": "\\((\\d+),(\\d+)\\)",
"osx": {
"path": "/usr/local/bin:/opt/local/bin"
}
}
@remcoder
Copy link
Author

updated according to your suggestions. thx!

@pstjvn
Copy link

pstjvn commented Dec 26, 2012

It seems the format has been changed slightly in 0.8.1. Currently the following works:

"file_regex": "^(.+?)\\((\\d+),(\\d+)\\): (.+)$"

The space after the file name is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment