我正在尝试捕获构建的输出,以打开带有语法错误的文件。
这是构建文件:
{
"cmd": ["D:\\xampp\\apache\\conf\\buildApache.bat"],
"file_regex": "of (.*?)(?=:)",
"line_regex": "line ([0-9]*) ",
"selector":"source.apacheconf"
}
这是来自构建文件的响应
AH00526: Syntax error on line 19 of D:/xampp/apache/conf/extra/httpd-vhosts.conf:
Invalid command 'Liste', perhaps misspelled or defined by a module not included in the server configuration
[Finished in 0.3s]
我想要做的是,当用户 dbl-click 错误时,它将在第 19 行打开文件。
如何编写构建文件?