-
Notifications
You must be signed in to change notification settings - Fork 0
/
Alan IF.sublime-build
44 lines (40 loc) · 1.79 KB
/
Alan IF.sublime-build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// "Alan.sublime-build" v0.0.2 (2018-08-22) | Alan v3 beta6
// =============================================================================
// Alan Build Systems
// =============================================================================
{
"shell_cmd": "alan -cc \"$file\"",
"working_dir": "$file_path",
"selector": "source.alan",
"file_patterns": [ "*.alan" ],
// ===========================================================================
// Capture Errors and Warnings from Compiler Output for Results Navigation
// ===========================================================================
// Whith `-cc` option, Alan reports have this form:
// "sourcefile.alan", line 5(24): 101 E : Error message.
// "sourcefile.alan", line 8(13): 200 W : Warning message.
// ---------------------------------------------------------------------------
"file_regex": "^\"([^\"]+)\", line (\\d+)\\((\\d+)\\): (.*)$",
//
// The captured RegEx groups should be:
// 1. filename
// 2. line number
// 3. column number
// 4. message
// ---------------------------------------------------------------------------
// NOTES: tested only on Windows (should check if the reports differ on Linux)
// ===========================================================================
// Syntax Highlight the Compiler Log (WIP experimental feature):
"syntax": "Packages/Alan_IF/AlanLog.sublime-syntax",
// ===========================================================================
// Build System Variants
// ===========================================================================
// Not done yet ...
// "variants":
// [
// {
// "name": "verbose",
// "shell_cmd": "alan --verbose \"$file\"",
// },
// ]
}