From: Алексей Шумкин Date: Tue, 11 Jan 2011 19:50:59 GMT Subject: Re[2]: [PATCH] userdiff: match Pascal class methods Message-ID: <1093185322.20110111225059@mail.ru> In-Reply-To: <7vipxv45ky.fsf@alter.siamese.dyndns.org> JCH> Alexey Shumkin writes: >> Class declarations were already covered by the second pattern, but class methods have the 'class' keyword in front too. Account for it. JCH> Too long a line (which I could re-wrap locally but I'd rather not be in JCH> the business of doing that for everybody). Ooh, I'm sorry >> PATTERNS("pascal", >> - "^((procedure|function|constructor|destructor|interface|" >> + "^(((class[ \t]+)?(procedure|function)|constructor|destructor|interface|" >> "implementation|initialization|finalization)[ \t]*.*)$" JCH> Earlier we took "^procedure frotz", "^function frotz", etc. and now we JCH> also take "^class procedure frotz", "^class function frotz", but not JCH> "^class constructor frotz"---am I reading the patterns correctly? Yes, you're reading correctly. 'class' keyword might precede only 'procedure' or 'function' keyword but not the other ones