Skip to content

Commit

Permalink
Fix String rendering in Java does not work (BNFC#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Paganelli committed Nov 19, 2015
1 parent 776d58b commit 4008c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/src/BNFC/Backend/Java/CFtoJavaPrinter15.hs
Expand Up @@ -298,7 +298,7 @@ prList user c rules =
-- <BLANKLINE>
prCat :: Doc -> Either (Cat, Doc) String -> Doc
prCat _ (Right t) = nest 7 ("render(\"" <> text(escapeChars t) <> "\");\n")
prCat fnm (Left (Cat "String", nt))
prCat fnm (Left (TokenCat "String", nt))
= nest 7 ("printQuoted(" <> fnm <> "." <> nt <> ");\n")
prCat _ (Left (InternalCat, _)) = empty
prCat fnm (Left (cat, nt))
Expand Down

0 comments on commit 4008c8b

Please sign in to comment.