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

dictionary value using <% %> is broken #114

Closed
jsnyders opened this issue May 28, 2015 · 0 comments · Fixed by #115
Closed

dictionary value using <% %> is broken #114

jsnyders opened this issue May 28, 2015 · 0 comments · Fixed by #115
Labels
Milestone

Comments

@jsnyders
Copy link
Contributor

Test case:

delimiters "$","$"
d1 ::= [
  "p": <%hi%>
]
main() ::= <<$d1.p$>>

Should produce
hi
But instead produces
%hi%

The problem seems to be in STGroup.java method createSingleton. If it is a BIGSTRING it trims 2 chars from each end otherwise it trims 1. But it doesn't take into consideration BIGSTRING_NO_NL which also needs 2 chars trimmed.

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

Successfully merging a pull request may close this issue.

3 participants