10 * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3
11 * @link http://cweiske.de/php-sqllint.htm
16 * Output for emacs' compilation mode
19 * @package PHP-SQLlint
21 * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3
22 * @link http://www.emacswiki.org/emacs/CreatingYourOwnCompileErrorRegexp
24 class Renderer_Emacs implements Renderer
29 * Begin syntax check output rendering
31 * @param string $filename Path to the SQL file
35 public function startRendering($filename)
37 $this->filename = $filename;
41 * Output errors in GNU style; see emacs compilation.txt
43 * @param string $msg Error message
44 * @param string $token Character which caused the error
45 * @param integer $line Line at which the error occured
46 * @param integer $col Column at which the error occured
50 public function displayError($msg, $token, $line, $col)
61 * Finish syntax check output rendering; no syntax errors found
65 public function finishOk()