changeset 12049:bf90777b58c9 release-3-2-x

correctly parse things like '@(){1 2}'
author John W. Eaton <jwe@octave.org>
date Tue, 04 Aug 2009 09:52:53 +0200
parents 4dc74edc8321
children 3df527f71cee
files src/ChangeLog src/parse.y
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +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.
+
 2009-07-24  John W. Eaton  <jwe@octave.org>
 
 	* pt-mat.cc (DO_SINGLE_TYPE_CONCAT_NO_MUTATE): New macro.
--- 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