I think the best way is to add a new syntax file into '~/.vim/after/syntax' with a new rule. This way the default syntax remains the same and you will get the `#include` highlighted as you want.
2017-04-17 16:13 GMT-03:00 R0b0t1 <[email protected]>: > Perhaps this is better suited for the vim-dev list. As noted in > CONTRIBUTING.md I have tried to follow up with the syntax file > maintainers but received no response. > > Per the FreeType library's documentation, it is to be included as follows: > > ```C++ > #include <ft2build.h> > #include FT_FREETYPE_H > ``` > > However Vim's syntax files for C/C++ (and likely other languages) only > highlight an `#include` when a matching pair of delimiters is > provided. How do I fix this? > > Cheers, > R0b0t1. > > -- > -- > You received this message from the "vim_use" 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_use" 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. > -- -- You received this message from the "vim_use" 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_use" 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.
