Sublime configuration for Pascal
原文链接 https://hsfzxjy.github.io/2014-10-23-sublime-configuration-for-pascal/
注:以下为加速网络访问所做的原文缓存,经过重新格式化,可能存在格式方面的问题,或偶有遗漏信息,请以原文为准。
鉴于U盘中Sublime的配置常常莫名其妙地消失,在此将其记录一下。
Code
{
"cmd": ["fpc", "-S2", "${file}", "-o${file_path}/${file_base_name}.exe"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.pascal",
"variants": [
{
"name": "Run",
"cmd": ["cmd", "/c", "fpc", "-S2", "${file}", "-o${file_path}/${file_base_name}.exe",
"&&", "${file_path}/${file_base_name}.exe"]
}
],
"osx":
{
"path": "/usr/local/bin:/usr/bin:/bin:${path}"
}
}