Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect parenthesis matching #9

Open
meandmycode opened this issue May 17, 2013 · 1 comment
Open

Incorrect parenthesis matching #9

meandmycode opened this issue May 17, 2013 · 1 comment

Comments

@meandmycode
Copy link

The following examples will cause bliss to incorrectly tokenize due to the parenthesis matching being based on balancing.

Hello from Bliss @(":)")

And when using a parent layout

@render('layout', function() {

  Hello from Bliss :)

})

This probably also applies to } when parsing the function and perhaps even ].

Not sure how much can be done to solve this without needing to understand more javascript syntax, or restructuring the tokenizer.

@gcpantazis
Copy link

To expand on this using some examples from the wiki, the following will fail with an "Unexpected token ILLEGAL" error:

  <li>@product.name ($@product.price)</li>

If I put a ":" or a "-" after @product.name, like below, it will render properly:

  <li>@product.name: ($@product.price)</li>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants