From bug-octave-request at bevo dot che dot wisc dot edu Fri Nov 14 15:10:44 1997 Subject: title(aaa From: "John W. Eaton" To: ged at ireq dot ca Cc: bug-octave at bevo dot che dot wisc dot edu Date: Fri, 14 Nov 1997 15:11:12 -0600 On 14-Nov-1997, ged at ireq dot ca wrote: | Bug report for Octave 2.0.9 configured for sparc-sun-solaris2.6 | | Description: | ----------- | | title("aaa ") result in the error | error: unterminated string constant | parse error: | | >>> gset title "aaa " | ^ | | error: evaluating index expression near line 38, column 5 | error: evaluating if command near line 36, column 3 | error: called from `title' in file `/gimli1/ged/octave/share/octave/2.0.9/m/plot/title.m' | | title("aaa") works fine I think the following change fixes this problem. It will be in 2.0.10. jwe Thu Jul 31 22:59:04 1997 John W. Eaton * lex.l : Ensure that we handle words that begin with single or double quotes as strings. *** src/lex.l~ Mon May 19 20:10:10 1997 --- src/lex.l Fri Nov 14 01:46:42 1997 *************** *** 244,250 **** return handle_string (yytext[0], 1); } ! [^ \t\n\;\,]*{S}* { string tok = strip_trailing_whitespace (yytext); TOK_PUSH_AND_RETURN (tok, TEXT); } --- 247,253 ---- return handle_string (yytext[0], 1); } ! [^ \t\n\;\,\"\'][^ \t\n\;\,]*{S}* { string tok = strip_trailing_whitespace (yytext); TOK_PUSH_AND_RETURN (tok, TEXT); }