projects
/
external
/
ragel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
The fbreak statement now advances p.
[external/ragel.git]
/
rlgen-ruby
/
rbx-gotocodegen.cpp
diff --git
a/rlgen-ruby/rbx-gotocodegen.cpp
b/rlgen-ruby/rbx-gotocodegen.cpp
index
ecb965a
..
9a8d8a5
100644
(file)
--- a/
rlgen-ruby/rbx-gotocodegen.cpp
+++ b/
rlgen-ruby/rbx-gotocodegen.cpp
@@
-649,7
+649,12
@@
void RbxGotoCodeGen::RET( ostream &ret, bool inFinish )
void RbxGotoCodeGen::BREAK( ostream &ret, int targState )
{
outLabelUsed = true;
- rbxGoto(ret, "_out") << "\n";
+
+ out <<
+ " begin\n"
+ " " << P() << " += 1\n"
+ " " << rbxGoto(ret, "_out") << "\n"
+ " end\n";
}
void RbxGotoCodeGen::writeData()