Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make.vim: vpath directive highlights incorrectly with multiple directories #342

Open
GoogleCodeExporter opened this issue Aug 21, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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.

Original issue reported on code.google.com by [email protected] on 16 Mar 2015 at 5:47

@GoogleCodeExporter
Copy link
Author

Please report to the maintainer of the script. You find the contact data in the 
file $VIMRUNTIME/syntax/make.vim
When he acknowledges the problem and fixes it, he will send an updated script 
for inclusion with Vim to Bram.

Original comment by [email protected] on 16 Mar 2015 at 8:25

  • Added labels: Runtime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant