Mark, Re: https://www.vim.org/scripts/script.php?script_id=6159
On Sun, 13 Jul 2025 at 16:30, Mark Manning <mark.eugene.mann...@gmail.com> wrote: > > Using Vim 9.1 > > Hi everyone! I got a C source file and started to edit it and did not see my > colors come up like normal. So for the last five hours I have been working on > making changes to the C.VIM syntax file. I was wondering if it can be > included into the next release. I uploaded it to my account on the VIM > website (Bram's website). But I can upload it here if you want. > > Things I have done to the file: > > 1. I went to the IBM webpage on the Standard C functions and copy/pasted all > of them into the C.VIM file. Edited the list to just get the function names > and built a "syn keyword" list of the functions. > 2. I took the generic function code I had put into the iwbasic.vim syntax > file and put it at the end of the list of functions so now all functions are > captured. (I might need to try some weird function names to make sure I got > everything.) > 3. Added in the: > > hi def link cFunction Function > > so the functions will now show up as functions. > > 4. Put a blurb in about what I did. I put this at the top of the list of > functions. > > Let me know if you want me to upload it here. We already have general function call highlighting, https://github.com/vim/vim/blob/master/runtime/syntax/c.vim#L551-L557, but it hasn't made a release yet. I had a quick look at your additions and it seems that the library functions should be defined with :syn-contained and contained in the general function call syntax group. I'm not sure this should be enabled by default and it could, optionally, be configured per library. My assumption is that this was not an oversight but a preference of Bram's given the nature of C. Thanks, Doug -- -- You received this message from the "vim_dev" 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_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/CAJ1uvoD22FtW8zysCmD38nLi%3DYQKBS%2B72ktQGpzEuREt03-LSw%40mail.gmail.com.