diff src/lex.l @ 8701:1652e39b934e

handle command names in declaration lists
author John W. Eaton <jwe@octave.org>
date Mon, 09 Feb 2009 12:23:12 -0500
parents 17ef48c699a5
children 6dc61981d18b
line wrap: on
line diff
--- a/src/lex.l	Mon Feb 09 13:05:35 2009 +0100
+++ b/src/lex.l	Mon Feb 09 12:23:12 2009 -0500
@@ -2768,6 +2768,7 @@
   if (is_command_name (tok) && ! is_variable (tok))
     {
       if (next_tok_is_eq
+	  || lexer_flags.looking_at_decl_list
 	  || lexer_flags.looking_at_return_list
 	  || (lexer_flags.looking_at_parameter_list
 	      && ! lexer_flags.looking_at_initializer_expression))
@@ -2841,9 +2842,10 @@
   // Not initiallly looking at a function handle.
   looking_at_function_handle = 0;
 
-  // Not parsing a function return or parameter list.
+  // Not parsing a function return, parameter, or declaration list.
   looking_at_return_list = false;
   looking_at_parameter_list = false;
+  looking_at_decl_list = false;
 
   // Not looking at an argument list initializer expression.
   looking_at_initializer_expression = false;