From: Junio C Hamano Date: Wed, 11 Aug 2021 16:04:21 GMT Subject: Re: Re* [PATCH v4] userdiff: improve java hunk header regex Message-ID: In-Reply-To: <157a0c35-1c82-9a2e-3bcd-ae6059ec71bd@kdbg.org> Johannes Sixt writes: >> + * When writing or updating patterns, assume that the contents these >> + * patterns are applied to are syntactically correct. You do not have >> + * to implement all syntactical corner cases---the patterns have to be >> + * sufficiently permissive. >> + */ > > IMO, as written, the comment falls short of suggesting that patterns can > be simple. How about appending "and can be simple"? The patterns can be simple without implementing all syntactical corner cases, as long as they are sufficiently permissive. perhaps? Thanks.