# HG changeset patch # User Michael Goffioul # Date 1390698286 18000 # Node ID 2319bf776fa29d52a2c7e7a1ef3fc0a9be22a323 # Parent fc0ce9eb9d827343734e88002c5e1cc4d38d3834 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. diff -r fc0ce9eb9d82 -r 2319bf776fa2 libinterp/parse-tree/oct-parse.in.yy --- 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); } ;