Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dwoo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Common
Dwoo
Commits
0ec75b61
Commit
0ec75b61
authored
Oct 14, 2008
by
seldaek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed allowNestedComments to setNestedCommentsHandling
git-svn-id:
svn://dwoo.org/dwoo/trunk@203
0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent
f1d2e1da
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
CHANGELOG
CHANGELOG
+3
-3
Compiler.php
lib/Dwoo/Compiler.php
+11
-1
No files found.
CHANGELOG
View file @
0ec75b61
...
@@ -18,9 +18,9 @@
...
@@ -18,9 +18,9 @@
*
Adapters
:
Zend
:
Added
parameters
to
provide
a
custom
engine
(
extends
Dwoo
)
*
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
or
a
custom
data
class
(
extends
Dwoo_Data
)
-
thanks
to
Maxime
M
é
rian
for
the
patch
the
patch
*
Compiler
:
added
Dwoo_Compiler
->
allowNestedComments
()
to
enable
parsing
of
*
Compiler
:
added
Dwoo_Compiler
->
setNestedCommentsHandling
(
true
)
to
enable
nested
comments
(
i
.
e
.
{*
{*
*}
*}
becomes
a
valid
comment
,
useful
to
comment
parsing
of
nested
comments
(
i
.
e
.
{*
{*
*}
*}
becomes
a
valid
comment
,
useful
out
big
chunks
of
code
containing
comments
)
to
comment
out
big
chunks
of
code
containing
comments
)
*
Lines
containing
only
comments
and
whitespace
are
now
entirely
removed
*
Lines
containing
only
comments
and
whitespace
are
now
entirely
removed
*
Removed
comments
do
not
mess
up
the
line
count
anymore
(
for
error
messages
)
*
Removed
comments
do
not
mess
up
the
line
count
anymore
(
for
error
messages
)
*
Fixed
parsing
bug
in
{
func
()->
propertyOfReturnedObject
}
*
Fixed
parsing
bug
in
{
func
()->
propertyOfReturnedObject
}
...
...
lib/Dwoo/Compiler.php
View file @
0ec75b61
...
@@ -251,11 +251,21 @@ class Dwoo_Compiler implements Dwoo_ICompiler
...
@@ -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)
* @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
;
$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
* 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.
* contain spaces before the first function/string/variable such as { $foo} is valid.
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment