changeset 9471:24df2e66abbe

correctly parse things like '@(){1 2}'
author John W. Eaton <jwe@octave.org>
date Wed, 29 Jul 2009 18:39:25 -0400
parents bcdf878e2686
children 303f862a896d
files src/ChangeLog src/parse.y
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
 2009-07-29  John W. Eaton  <jwe@octave.org>
 
+	* parse.y (param_list_end): Also set
+	lexer_flags.looking_for_object_index to false.
+
 	* ov-float.cc, ov-flt-re-mat.cc, ov-re-mat.cc, ov-re-sparse.cc,
 	ov-scalar.cc: Use complex function for acos mapper if arg is out
 	of range [-1, 1].
--- a/src/parse.y
+++ b/src/parse.y
@@ -1138,7 +1138,10 @@
 		;
 
 param_list_end	: ')'
-		  { lexer_flags.looking_at_parameter_list = false; }
+		  {
+		    lexer_flags.looking_at_parameter_list = false;
+		    lexer_flags.looking_for_object_index = false;
+		  }
 		;
 
 param_list	: param_list_beg param_list1 param_list_end