From: Kapil Jain Date: Sun, 24 Mar 2019 10:04:44 GMT Subject: Re: [GSoC][RFC/PATCH] userdiff: added support for diffing shell scripts Message-ID: In-Reply-To: On Sun, Mar 24, 2019 at 2:49 PM Christian Couder wrote: > > The test_language_driver() function used to test the regexps is > ... > GIT_TEST_CMP which is usually either "diff -u" or "diff -c". Thanks. please provide some insights on the regex mentioned below: + +PATTERNS("shell", + /* Function Names */ + "([A-Za-z_][A-Za-z0-9_]*)[[:space:]]*\\([[:space:]]*\\)[[:space:]]*\\{", + /* Words */ + "([$#@A-Za-z_\"\'][$#@A-Za-z0-9_\"\']*)"), + reference mail: https://public-inbox.org/git/20190324084523.8744-1-jkapil.cs@gmail.com/. please let me know if the regex is not self explanatory.