{
/* A string specifying the encoding of the build system output.
Uses Python codec names.
Defaults to "utf-8".*/
"encoding": "utf-8",
/* A string specifying the directory to execute the cmd or shell_cmd within.
May use variables.
Example: "$file_path" */
"working_dir": "$file_path",
/* A string specifying a shell command to execute.
Unlike the cmd option, this does allow piping and redirection.
Will use bash on Mac and Linux machine, and cmd.exe on Windows.
May use variables.
Example: "my_command \"$file\" | other_command" */
"shell_cmd": "g++ -Wall -std=c++11 \"$file_name\" -o \"$file_base_name\"",
/* A string containing a regular expression to run on the build output to match file information.
The matched file information is used to enable result navigation.
The regex(正则表达式regular expression) should capture 2, 3 or 4 groups.
The capture groups should be:
filename
line number
column number
message
Example: "^\s*(\\S[^:]*)\\((\\d+):(\\d+)\\): ([^\\n]+)" */
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
/* The base scope name of the syntax that this build system should be enabled for.
Example: "source.python".*/
"selector": "source.c++",
/* A list of subsidiary build systems that will inherit the options from the top-level build system.
Each variant needs to specify a name key, and may override or add options to the top-level build system.*/
"variants":
[
{
"name": "Run",
"shell_cmd": "g++ -Wall -std=c++11 \"$file\" -o \"$file_base_name\" && start cmd /c \"\"${file_path}/${file_base_name}\" & pause\""
}
]
}