-
Notifications
You must be signed in to change notification settings - Fork 2
/
Wenyan.sublime-build
24 lines (22 loc) · 1.04 KB
/
Wenyan.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
{
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.wenyan",
"linux": {"shell_cmd": "wenyan-linux --exec true ${file}"},
"osx": {"shell_cmd": "wenyan-macos --exec true ${file}"},
"windows": {"shell_cmd": "wenyan-win --exec true ${file}"},
"variants": [
{
"name": "Compile to Js",
"linux": {"shell_cmd": "wenyan-linux --lang js -o ${file_base_name}.js ${file}"},
"osx": {"shell_cmd": "wenyan-macos --lang js -o ${file_base_name}.js ${file}"},
"windows": {"shell_cmd": "wenyan-win --lang js -o ${file_base_name}.js ${file}"},
},
{
"name": "Compile to Python",
"linux": {"shell_cmd": "wenyan-linux --lang py -o ${file_base_name}.py ${file}"},
"osx": {"shell_cmd": "wenyan-macos --lang py -o ${file_base_name}.py ${file}"},
"windows": {"shell_cmd": "wenyan-win --lang py -o ${file_base_name}.py ${file}"},
}
]
}