Mercurial > hg > octave-nkf
diff src/utils.cc @ 10502:f13bf183a003
isvarname: keywords are not valid variable names
author | Judd Storrs <jstorrs@gmail.com> |
---|---|
date | Fri, 09 Apr 2010 09:54:19 -0400 |
parents | 57a59eae83cc |
children | 1834132fb50b |
line wrap: on
line diff
--- a/src/utils.cc +++ b/src/utils.cc @@ -54,6 +54,7 @@ #include "error.h" #include "gripes.h" #include "input.h" +#include "lex.h" #include "load-path.h" #include "oct-errno.h" #include "oct-hist.h" @@ -102,7 +103,7 @@ return retval; if (argc == 2) - retval = valid_identifier (argv[1]); + retval = valid_identifier (argv[1]) && ! is_keyword (argv[1]); else print_usage ();