Closed mikehaertl closed 10 years ago
Thanks for reporting this. I'll flag it as a bug. If you can help with a patch that would be awesome :star: I'll try and have a look over the weekend otherwise.
Cool, thanks. I'd love to help, but unfortunately I only have very little knowledge of vims syntax hl syntax. But the given commit only changes a couple of lines. So if the issue is reproducable with my code it should hopefully be easy to track down the problem.
I've tried it on master
as well as 356f296
^image and I don't get the lines highlighted as comments. What other bundles do you have installed? What specific to PHP do you have in your .vimrc
? Can you also check your :echo &synmaxcol
setting?
:echo &synmaxcol
gives me 3000
. Here's my complete vimrc.local
that i use on Ubuntu:
https://gist.github.com/mikehaertl/1612035
I was able to reproduce it on other machines, too. I've commented out all other Vundle plugins except for php.vim
- still the same issue.
Any news on this? Can you reproduce it?
I've tried again on Ubuntu 13.10 with vim 7.4 and a very lean /etc/vim/vimrc.local
and was able to still reproduce the issue:
filetype off " required by Vundle!
set rtp+=/etc/vim/bundle/vundle
call vundle#rc('/etc/vim/bundle') " Use a shared folder instead of ~/.vimrc/bundle
" Vundle plugins
Bundle 'gmarik/vundle'
Bundle 'StanAngeloff/php.vim'
" color scheme approximator
Bundle 'CSApprox'
Bundle 'Colour-Sampler-Pack'
set t_Co=256 " Enable 256 color mode
syntax on " syntax highlighting on (set before colorscheme)
colorscheme darkspectrum
I haven't got a way to try this in my day-to-day machine and short of installing a VM, I can't see it in action. Getting a VM is on my list, appreciate the concise .vimrc, it will come handy.
I was finally able to reproduce it in a Docker container, thanks for the .vimrc
reference. Does the syntax work correctly with the latest version from master
?
Yay, looks good :+1:. Thanks!
Commit 356f296e5678edbd45d7f52b9bf4e6efabf92ed5 seems to have introduced a bug with comment blocks on a single line. For example with a comment like
all following lines are treaded as comments.
Full example:
These lines are incorrectly highlighted as comments now: