Commit 0ec75b61 by seldaek

changed allowNestedComments to setNestedCommentsHandling

git-svn-id: svn://dwoo.org/dwoo/trunk@203 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent f1d2e1da
......@@ -18,9 +18,9 @@
* Adapters: Zend: Added parameters to provide a custom engine (extends Dwoo)
or a custom data class (extends Dwoo_Data) - thanks to Maxime Mérian for
the patch
* Compiler: added Dwoo_Compiler->allowNestedComments() to enable parsing of
nested comments (i.e. {* {* *} *} becomes a valid comment, useful to comment
out big chunks of code containing comments)
* Compiler: added Dwoo_Compiler->setNestedCommentsHandling(true) to enable
parsing of nested comments (i.e. {* {* *} *} becomes a valid comment, useful
to comment out big chunks of code containing comments)
* Lines containing only comments and whitespace are now entirely removed
* Removed comments do not mess up the line count anymore (for error messages)
* Fixed parsing bug in {func()->propertyOfReturnedObject}
......
......@@ -251,11 +251,21 @@ class Dwoo_Compiler implements Dwoo_ICompiler
*
* @param bool $allow allow nested comments or not, defaults to true (but the default internal value is false)
*/
public function allowNestedComments($allow = true) {
public function setNestedCommentsHandling($allow = true) {
$this->allowNestedComments = (bool) $allow;
}
/**
* returns the nested comments handling setting
*
* @see setNestedCommentsHandling
* @return bool true if nested comments are allowed
*/
public function getNestedCommentsHandling() {
return $this->allowNestedComments;
}
/**
* sets the tag openings handling strictness, if set to true, template tags can
* contain spaces before the first function/string/variable such as { $foo} is valid.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment