-
Notifications
You must be signed in to change notification settings - Fork 69
Can't change namespace color showing as phpRegion #90
Comments
Try adding a syntax extension: function! PhpSyntaxOverride()
syn keyword phpInclude namespace contained nextgroup=phpUseClass skipwhite skipempty
endfunction
augroup phpSyntaxOverride
autocmd!
autocmd FileType php call PhpSyntaxOverride()
augroup END Does this work for you? |
Hi @StanAngeloff thanks for getting back to me. Sorry it was a bit late when I posted my comment so I don't think I was as descriptive as I should have been. The code you posted hasn't had any effect on the color and they're still showing as I would like to change |
Very odd, I was able to pop the snippet above in my |
@StanAngeloff I just tested it with a different theme as I heavily modified it last night. Now I able to get get the text color to match thank you. My only problem is now is the separator for the namespace doesn't match the ones below and the semicolon is taking on the same color. How do I style the Thank you for taking the time to help me I appreciate it. |
Can you pop this in your " Synstack {{{
" Show the stack of syntax highlighting classes affecting whatever is under the cursor.
function! SynStack()
echo join(map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")'), " > ")
endfunc
nnoremap <F7> :call SynStack()<CR>
" }}} then restart and press As for colouring the |
@StanAngeloff just tested with your function and it's still only showing What about changing the color of all php semicolons? I would be happy with that. Thanks again for helping me debug this. |
As for the semicolon, try adding: syn match phpSemi /;/ contained containedin=phpRegion
hi phpSemi guifg=#ff0000 guibg=NONE gui=NONE to your I'm out of ideas about the |
BTW, have you upgraded |
It's working thank you very much. I'm confused though hoping you can explain what is happening as i'm new to vim. I was editing my |
Sorry for the late reply, I misplaced GitHub's notification and only just realised there was a reply to this issue.
I'm not sure what's going on to be fair. Is it possible you have two |
I would first off like to thank you for this amazing plugin.
My problem is I can't style the namespace at the top as it's showing as
phpRegion
that goes for the\
and;
tooI would like it to match the use statements below and if possible style the
;
a different color too.How do I go about this?
The text was updated successfully, but these errors were encountered: