nixCraft published a tutorial about explaining how to check the syntax of the squid proxy configuration file.
Squid test config file for syntax errors
Explains how to syntax check (test) the squid proxy configuration file on your Linux, *BSD, and Unix-like system before restarting the server.
Squid test config file for syntax errors - nixCraft