Re: [PATCH] Add built-in diff patterns for MATLAB code
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Nov 15, 2011, 12:37 UTC
- Message-ID
- <201111151337.07013.trast@student.ethz.ch>
- In-Reply-To
- <1321191764-11972-1-git-send-email-hendeby@isy.liu.se>
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