-
Notifications
You must be signed in to change notification settings - Fork 297
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
Custom C/C++ syntax broken after commit cbde2571d4f79770ac552fe75440de72893bc73a #608
Comments
Could you send your .vimrc ? |
Here are two screenshots, one with |
Okay, I see the difference, but only when using neovim, I'll try to fix it |
I never disabled your plugin, I just reverted back to an older commit to show the expected behavior. I'll try to explain the issue better: My first screenshot shows everything working as expected. I have my custom types highlighted in yellow, the function name is blue and the const keyword is purple. In order to have After the introduction of the aforementioned commit, things broke. To be precise the function name stopped being blue and the const keyword is yellow. My types are correctly highlighted though, which makes me think that the syntax file of the plugin is ignored in favor of my custom syntax file. UPDATE: I removed your plugin and I installed |
Your custom file should be named |
If I do this it works as expected for C++ syntax highlighting but it breaks for C. |
Ok I guess I'll need to ensure loading order is preserved even though Bram says otherwise: vim/vim#7056 (comment) |
If I understood what I read correctly, Bram believes that we should be able to add new things on top of the preexisting ones without overriding them, hence why my syntax file was working correctly before. Am I missing something? |
Bram says that plugins should not dependon order of loading of each other. In your case you're depending on |
Ah I see, it's clear now, thanks for the explanation! |
Should be fine now, the loading order is as follows:
|
Sorry, now should work. I made silly mistake |
It's perfect, thanks a ton! |
I use a custom function to highlight C/C++ objects and it was working perfectly before the aforementioned commit: 'Respect symlinks for resolving vim-polyglot as fallback, closes #601'
The problem seems to be that the custom
.vim/after/syntax/c.vim
is the only file read , where before, the custom changes were applied on top ofbfrg/vim-cpp-modern/after/syntax/c.vim
Before:
After:
![Screen Shot 2020-10-25 at 12 22 30](https://user-images.githubusercontent.com/27889580/97105687-275d7b80-16bd-11eb-845a-d25252fc1a48.png)
The text was updated successfully, but these errors were encountered: