properly escape templates

This commit is contained in:
David Sisson 2016-05-20 22:15:48 -07:00
parent 6aa03ed9a2
commit ae4dcbabbd
1 changed files with 1 additions and 1 deletions

View File

@ -860,7 +860,7 @@ public abstract class BaseCppTest {
+ " void enterEveryRule(Ref\\<ParserRuleContext> ctx) override {\n"
+ " for (auto child : ctx->children) {\n"
+ " auto parent = child->getParent();\n"
+ " if (dynamic_cast<tree::RuleNode>(parent) || parent.getRuleContext() != ctx) {\n"
+ " if (dynamic_cast\\<tree::RuleNode>(parent) || parent.getRuleContext() != ctx) {\n"
+ " raise \"Invalid parse tree shape detected.\";\n"
+ " }\n"
+ " }\n"