Re: phpdoc diff in git -L is not the correct one

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Martin,

thanks for your answer!

In the end I think your best option right now is to give explicit line
numbers for <end> and <start>.
That is indeed what I currently do, I plugged that to vim's visual selection with

  vnoremap <leader>l :<c-u>exe '!git log -L' line("'<").','.line("'>").':'.expand('%')<CR>

and it works great!

I was wondering if that was maybe an issue with the PHP regex, but with your
explanation I understand a bit more what the issue might be: The man page you
are quoting seems to say that the regex can only work on a single line as
opposed to a code block (for probably very good reasons), which means there is
no hope to include the phpdoc in the regex, or to fix this issue I suppose.

I also suppose the issue is the same for any other language that has documentation above function declarations.

Thanks for taking the time to answer my question.

--

greg0ire




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux