#!/usr/bin/env php
<?php
require_once(dirname(__FILE__) . '/yaml/sfYamlParser.php');
$yaml = new sfYamlParser();
try {
$yaml->parse(file_get_contents($_SERVER['argv'][1]));
} catch (InvalidArgumentException $e) {
echo "Unable to parse the YAML string: " . $e->getMessage() . "\n";
}
(defun flymake-yaml-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "flymake-yaml" (list local-file))))
(add-to-list 'flymake-allowed-file-name-masks
'("\\.ya?ml$" flymake-yaml-init))
(add-to-list 'flymake-err-line-patterns
'("Unable to parse the YAML string: Unable to parse line \\([0-9]+\\) \\(.*\\)"
nil 1 nil 2))
Yaml component (Symfony Components)