I would like to convert one of my Vim plugins to Atom. In a nutshell, my plugin is for C and C++ and overlays the existing C and C++ syntax highlighter used by Vim. The plugin identifies and calls attention to dangerous APIs (a list configured within the plugin) by highlighting them in red. (I use this as a reminder to use better APIs, but it is also useful when I am reviewing code.)
Now I haven’t written an Atom syntax highlighter yet, but I’ve been looking into it. I don’t want to replace the existing C and C++ syntax highlighters. I also don’t want to make any changes to them. Ideally, for C and C++ file types, I would like to have my syntax highlighter loaded second, so that I can override the existing C or C++ syntax highlighter whenever a dangerous API is seen.
Is this approach supported by Atom? Is this the right way to perform additional syntax coloring on a loaded file? Thanks for any and all assistance!