Sublim Text
#5

You need to escape backslashes:

Код:
{
    "cmd": ["pawncc.exe", "$file", "-o$file_path\\\\$file_base_name", "-;+", "-(+", "-d3"],
    "file_regex": "(.*?)[(]([0-9]*)[)]",
    "working_dir": "C:\\Users\\aflid\\Documents\\zserveur samp\\SQL\\pawno"
}
If you use sublime projects, you can use my build:

Код:
{
	"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${project_base_name}.pwn", "-;+", "-v2", "-d3", "-\\)+"],
	"working_dir": "${project_path:${folder}}\\gamemodes",
	"file_regex": "^([^\\.]+\\.pwn)\\((\\d+)\\)() : (.*)$",
	"variants": [
		{
			"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${file_name}", "-;+", "-v2", "-d3", "-\\)+"],
			"working_dir": "${file_path}",
			"name": "Current file"
		},
		{
			"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${file_name}", "-l", "-;+", "-v2", "-d3", "-\\)+"],
			"working_dir": "${file_path}",
			"name": "Current file preprocessed"
		},
		{
			"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${file_name}", "-a", "-;+", "-v2", "-d3", "-\\)+"],
			"working_dir": "${file_path}",
			"name": "Current file pcode"
		}
	]
}
There's also Southclaw's great package: https://github.com/Southclaw/pawn-sublime-language
Reply


Messages In This Thread
Sublim Text - by Sirop - 11.08.2016, 15:15
Re: Sublim Text - by Misiur - 11.08.2016, 15:27
Re: Sublim Text - by Sirop - 11.08.2016, 15:31
Re: Sublim Text - by FuNkYTheGreat - 11.08.2016, 15:37
Re: Sublim Text - by Misiur - 11.08.2016, 15:39
Re: Sublim Text - by Sirop - 11.08.2016, 17:30

Forum Jump:


Users browsing this thread: 1 Guest(s)