git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add built-in diff patterns for MATLAB code

From
Gustaf Hendeby <hendeby@isy.liu.se>
Date
Nov 15, 2011, 12:47 UTC
Message-ID
<df238a1919b7c7d05749b4aa637fe2c7@isy.liu.se>
In-Reply-To
<201111151337.07013.trast@student.ethz.ch>
 On Tue, 15 Nov 2011 13:37:06 +0100, Thomas Rast wrote:
Show 10 quoted lines
> 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.
 Good point Thomas, I forgot all about the .-operators.  I will add 
 \.[*/^'] as words, are there any other ones to consider?  Thanks for 
 paying attention!
 /Gustaf
Previous: Thomas RastNext: Thomas Rast
Message 3 of 5 in “Add built-in diff patterns for MATLAB code”
  1. Add built-in diff patterns for MATLAB codeGustaf Hendeby, Nov 13, 2011
  2. Thomas RastNov 15, 2011
  3. Gustaf HendebyNov 15, 2011
  4. Thomas RastNov 15, 2011
  5. Add built-in diff patterns for MATLAB codeGustaf Hendeby, Nov 15, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.