Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 342 by [email protected]: make.vim: vpath directive
highlights incorrectly with multiple directories
https://code.google.com/p/vim/issues/detail?id=342
What steps will reproduce the problem?
1. Create a makefile with the following lines:
vpath %.h /foo/bar
vpath %.i /foo/bar:/baz/blotso
2. Ensure syntax highlighting is on, filetype is set properly, etc.
What is the expected output? What do you see instead?
I expect to see "vpath" highlighted as a statement, % as a make wildcard,
and the rest of the line basically as expected. Instead, the second line is
highlighted as a target line, due to the colon.
What version of the product are you using? On what operating system?
I'm using vim v7.0 on RHEL 5.9 (as directed by my project -- no, I am not
allowed to upgrade the executable, but I can add personal files). I have
confirmed this happens with the currently committed version of make.vim.
Please provide any additional information below.
The solution is to change line 26 to read
syn match makeVpath "^ *vpath"
then add this line just about anywhere:
hi link makeVpath Statement
(Sorry that I can't provide a patch file for this, but the system I work on
is not connected to the Internet.)
Adding these lines to ~/.vim/after/syntax/make.vim solves the problem.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.