Friday, May 23, 2014

Re: matching the last part of a url -> and in a syntax file

Tim Chase wrote on Fri-23-May 14 6:32PM
> \(http|\S*\/\)\@<=\w\+\/\=\S\@!

Thanks Tim, this works perfectly when tested with matchstr(),
however I need ti in a syntax file and there it appears to be a
noop. I tried;
syn match last_url '\(http\S*\/\)\@<=\w\+\/\=\S\@!'

Any ideas?

--
Eric Smith

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: