mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-01-01 03:12:23 +08:00
Merge branch 'master' into 2011-09-09-CxScript
This commit is contained in:
commit
e853e2e4ac
@ -1837,6 +1837,7 @@ namespace chaiscript
|
||||
retval = true;
|
||||
if (Operator_Helper(t_precedence)) {
|
||||
do {
|
||||
while (Eol()) {}
|
||||
if (!Operator(t_precedence+1)) {
|
||||
throw exception::eval_error("Incomplete "
|
||||
+ std::string(ast_node_type_to_string(m_operators[t_precedence])) + " expression",
|
||||
|
||||
4
unittests/multiline_oper.chai
Normal file
4
unittests/multiline_oper.chai
Normal file
@ -0,0 +1,4 @@
|
||||
var x = 3 +
|
||||
4
|
||||
|
||||
assert_equal(x, 7);
|
||||
Loading…
x
Reference in New Issue
Block a user