Sublime Forum

Build script

#1

If I’ve got output from a build script that looks like this:

----- FILE : C:\Share\cw\js\topdeals\jquery.topdeals.js ----- Line 2, E:0005: Illegal tab in whitespace before "$.fn.topDeals" Line 3, E:0005: Illegal tab in whitespace before "var" Line 4, E:0005: Illegal tab in whitespace before "countryC" Line 5, E:0005: Illegal tab in whitespace before "boardBasis" Line 6, E:0005: Illegal tab in whitespace before "sorPrice" Line 7, E:0005: Illegal tab in whitespace before "sorRating" Line 8, E:0005: Illegal tab in whitespace before "startPlus" Line 9, E:0005: Illegal tab in whitespace before "aOrB" Line 10, E:0005: Illegal tab in whitespace before "}" Line 10, E:0010: (New error) Missing semicolon at end of line
How can I make the build script pick up the file and then the line?

0 Likes

#2

You’ll need to specify two regexs in the .sublime-build file: “file_regex” and “line_regex”. Something along the lines of:

"file_regex": "^----- FILE  :  (.+) ----",
"line_regex": "^Line ([0-9]+),"

(untested, so YMMV)

0 Likes