Re: Trying to use xfuncname without success.
- From
René Scharfe <l.s.r@web.de>
- Date
- Feb 7, 2017, 23:18 UTC
- Message-ID
- <271989d5-c383-0c0d-bfcb-f4118f9fa2aa@web.de>
- In-Reply-To
- <CAKepmajNz7TP_Z6p_Wj17tOpiMOpKkvQOBvVthBkEiKabAppjg@mail.gmail.com>
Am 07.02.2017 um 20:21 schrieb Jack Adrian Zappa:
Show 8 quoted lines
> I'm trying to setup a hunk header for .natvis files. For some reason, > it doesn't seem to be working. I'm following their instructions from > here, which doesn't say much in terms of restrictions of the regex, > such as, is the matched item considered the hunk header or do I need a > group? I have tried both with no success. This is what I have: > > [diff "natvis"] > xfuncname = "^[\\\t ]*<Type[\\\t ]+Name=\"([^\"])\".*$"
The extra "\\" allow backslashes to be used for indentation as well as between Type and Name, which is probably not what you want. And your expression only matches single-char Name attributes. Try:
xfuncname = "^[\t ]*<Type[\t ]+Name=\"([^\"]+)\".*$"
René