From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Rast Subject: Re: [PATCH] Add built-in diff patterns for MATLAB code Date: Tue, 15 Nov 2011 13:37:06 +0100 Message-ID: <201111151337.07013.trast@student.ethz.ch> References: <1321191764-11972-1-git-send-email-hendeby@isy.liu.se> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Git List , Junio C Hamano To: Gustaf Hendeby X-From: git-owner@vger.kernel.org Tue Nov 15 13:37:17 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RQIGK-00035c-MK for gcvg-git-2@lo.gmane.org; Tue, 15 Nov 2011 13:37:17 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752268Ab1KOMhK (ORCPT ); Tue, 15 Nov 2011 07:37:10 -0500 Received: from edge10.ethz.ch ([82.130.75.186]:55060 "EHLO edge10.ethz.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751784Ab1KOMhJ (ORCPT ); Tue, 15 Nov 2011 07:37:09 -0500 Received: from CAS10.d.ethz.ch (172.31.38.210) by edge10.ethz.ch (82.130.75.186) with Microsoft SMTP Server (TLS) id 14.1.339.1; Tue, 15 Nov 2011 13:37:05 +0100 Received: from thomas.inf.ethz.ch (129.132.153.233) by cas10.d.ethz.ch (172.31.38.210) with Microsoft SMTP Server (TLS) id 14.1.339.1; Tue, 15 Nov 2011 13:37:07 +0100 User-Agent: KMail/1.13.7 (Linux/3.1.0-47-desktop; KDE/4.6.5; x86_64; ; ) In-Reply-To: <1321191764-11972-1-git-send-email-hendeby@isy.liu.se> X-Originating-IP: [129.132.153.233] Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Gustaf Hendeby wrote: > +PATTERNS("matlab", > + "^[[:space:]]*((classdef|function)[[:space:]].*)$|^%%[[:space:]].*$", > + "[a-zA-Z_][a-zA-Z0-9_]*|[-+0-9.e]+|[=~<>]=|\\|\\||&&"), Shouldn't you, for matlab, ensure that ./ "sticks" as a single word since it is an operator? At least we used the same logic for the C || and && operators, which you copied. -- Thomas Rast trast@{inf,student}.ethz.ch