Thread (9 messages) 9 messages, 3 authors, 2017-02-08

Re: Trying to use xfuncname without success.

From: Jack Adrian Zappa <hidden>
Date: 2017-02-08 17:11:46

Thanks Rene, but you seem to have missed the point.  NOTHING is
working.  No matter what I put there, it doesn't seem to get matched.

Just to be sure, I tested your regex and again it didn't work.

Someone on the SO site stated they could get it to work on FreeBSD and
I'm on Windows, so this might be a platform thing.  Can anyone else on
Windows please confirm?

Thanks,


A

On Tue, Feb 7, 2017 at 6:18 PM, René Scharfe [off-list ref] wrote:
Am 07.02.2017 um 20:21 schrieb Jack Adrian Zappa:
quoted
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é
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help