Skip to content

Subexpression with a string where zero spaces occur before parenthesis breaks Parser #357

@tunnela

Description

@tunnela

The PHP Code:

require('../vendor/autoload.php');

use LightnCandy\LightnCandy;

// The Template:
$template = <<<VAREND
{{{debug (debug 'foobar(moo).')}}}
VAREND;

$phpStr = LightnCandy::compile($template, array(
    'flags' => LightnCandy::FLAG_HANDLEBARS | LightnCandy::FLAG_ERROR_EXCEPTION
));

echo "Generated PHP Code:\n$phpStr\n";

The Issue:

The issue is very similar to #281 and #295. The error message is Error in 'echo (echo "foobar(moo).")': expect ')' but the token ended!!.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions