btwael / mammouth

Unfancy PHP
http://mammouth.boutglay.com
MIT License
214 stars 22 forks source link

brackets lost #28

Closed CezaryDanielNowak closed 10 years ago

CezaryDanielNowak commented 10 years ago
{{
@time_sum += -@time_start + (@time_start = microtime(true))
}}

output:

<?php 
$this->time_sum += -$this->time_start + $this->time_start = microtime(true);
?>

desired output:

<?php 
$this->time_sum += -$this->time_start + ($this->time_start = microtime(true));
?>
btwael commented 10 years ago

see example: http://mammouth.wamalaka.com/#try:{{%0A%40time_sum%20%2B%3D%20-%40time_start%20%2B%20%28%40time_start%20%3D%20microtime%28true%29%29%0A}}