Page 1 of 1

Sublime Text Build Command

Posted: Wed Apr 30, 2014 1:16 pm
by BinderNews
Hello all. I'm new here but I've been using Love2D for a few months with sublime text. I recently put together a build file for Love for Sublime Text. It's based on the build system from the wiki but I added a few things (file_regex, working_dir, improved project path).
NOTE: I also have support in the file_regex for lume.trace output
About file_regex

Thanks to all you who make Love2D an awesome and easy to use framework. :awesome:

Code: Select all

{
    "selector": "source.lua",
    "cmd": ["C:/Apps/love/love.exe", "${project_path:${folder}}"],
    "file_regex": "^(?:Error: )?\\s*\\[?([\\w/.]*?):([0-9]*):?([0-9]*)",
    "working_dir": "${project_path:${folder}}",
    "shell": true
}