diff --git a/lib/Doctrine/Parser/spyc.php b/lib/Doctrine/Parser/spyc.php index bad48c89b..6d146657c 100644 --- a/lib/Doctrine/Parser/spyc.php +++ b/lib/Doctrine/Parser/spyc.php @@ -510,6 +510,10 @@ function _parseLine($line) { $line = trim($line); + if(!preg_match("/\\\#/", $line)) { + $line = trim(preg_replace('/#.*$/', '', $line)); + } + $array = array(); if (preg_match('/^-(.*):$/',$line)) {