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

Broken custom delimiters when combined with { } at latest dev 26 version #394

Closed
juangacovas opened this issue Oct 15, 2017 · 2 comments
Closed

Comments

@juangacovas
Copy link

juangacovas commented Oct 15, 2017

Say I want to use old style delimiters instead of { and } which is nice for us (avoiding literals and stuff)

$smarty->left_delimiter = '<%';
$smarty->right_delimiter = '%>';

This will produce the following error as soon you try to compile any simple template using the custom delimiters AND anything that also contains { and }

Call to undefined method Smarty_Internal_Templatelexer::yy_r1_()
Line 392 at file: smarty\libs\sysplugins\smarty_internal_templatelexer.php

Example non working tpl (setting custom delimiters):

<%$test|default:'Default test string'%>
<style>
table.mytable td {
  font-family:Arial;
}
</style>

Example working tpl (without { and })

<%$test|default:'Default test string'%>

I am positive everything was working fine at dev-22 (now dev-26)

Thanks!

@juangacovas
Copy link
Author

Checked with dev 26 version, still broken, we're unable to use custom delimiters as described.

@juangacovas juangacovas changed the title Broken custom delimiters at latest dev 25 version Broken custom delimiters when combined with { } at latest dev 26 version Oct 21, 2017
@uwetews
Copy link
Contributor

uwetews commented Oct 21, 2017

This is now fixed with version 3.1.32-dev-27

@uwetews uwetews closed this as completed Oct 21, 2017
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