Mercurial > hg > octave-nkf
changeset 3985:fa0ae9105656
[project @ 2002-07-11 04:02:00 by jwe]
author | jwe |
---|---|
date | Thu, 11 Jul 2002 04:02:00 +0000 |
parents | addebffd4961 |
children | 7cb85d5c7aad |
files | src/ChangeLog src/lex.l |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2002-07-10 John W. Eaton <jwe@bevo.che.wisc.edu> + * lex.l (maybe_unput_comma): Also handle '{' as an indexing op. + * DLD-FUNCTIONS/odessa.cc: New file. * Makefile.in (DLD_XSRC): Add it to the list.
--- a/src/lex.l +++ b/src/lex.l @@ -2158,11 +2158,12 @@ if (postfix_un_op || bin_op || sep_op || dot_op) return; - int index_op = (c1 == '('); + int index_op = (c1 == '(' || c1 == '{'); if (index_op) { - // If there is no space before the '(', we don't insert a comma. + // If there is no space before the indexing op, we don't + // insert a comma. if (! spc_gobbled) return;