Mercurial > octave-dspies
changeset 18395:2319bf776fa2
Fix parsing of classdef property accessors.
* oct-parse.in.yy (rule function1): Reset parsing_classdef_get_method
and parsing_classdef_set_method after using them.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Sat, 25 Jan 2014 20:04:46 -0500 |
parents | fc0ce9eb9d82 |
children | 954bf42180d3 |
files | libinterp/parse-tree/oct-parse.in.yy |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.in.yy Thu Jan 23 04:07:32 2014 -0500 +++ b/libinterp/parse-tree/oct-parse.in.yy Sat Jan 25 20:04:46 2014 -0500 @@ -1423,6 +1423,9 @@ else if (lexer.parsing_classdef_set_method) fname.insert (0, "set."); + lexer.parsing_classdef_get_method = false; + lexer.parsing_classdef_set_method = false; + $$ = parser.frob_function (fname, $2); } ;