summaryrefslogtreecommitdiff
path: root/ragel/ipgoto.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ragel/ipgoto.cc')
-rw-r--r--ragel/ipgoto.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ragel/ipgoto.cc b/ragel/ipgoto.cc
index c273b012..f6db530c 100644
--- a/ragel/ipgoto.cc
+++ b/ragel/ipgoto.cc
@@ -220,18 +220,18 @@ void IpGoto::TARGS( ostream &ret, bool inFinish, int targState )
void IpGoto::BREAK( ostream &ret, int targState, bool csForced )
{
- ret << "{" << P() << "+= 1; ";
+ ret << OPEN_GEN_BLOCK() << P() << "+= 1; ";
if ( !csForced )
ret << vCS() << " = " << targState << "; ";
- ret << "goto " << _out << ";}";
+ ret << "goto " << _out << ";" << CLOSE_GEN_BLOCK();
}
void IpGoto::NBREAK( ostream &ret, int targState, bool csForced )
{
- ret << "{" << P() << "+= 1; ";
+ ret << OPEN_GEN_BLOCK() << P() << "+= 1; ";
if ( !csForced )
ret << vCS() << " = " << targState << "; ";
- ret << nbreak << " = 1;}";
+ ret << nbreak << " = 1;" << CLOSE_GEN_BLOCK();
}
void IpGoto::NFA_PUSH_ACTION( RedNfaTarg *targ )