Yes, I can arrange it into two different modes. I was seeing if I could get it done in just one. I'm new to CMake so I wasn't aware about //. It seams strange that both # and // would be comments in the cache files, but only # is a comment in the cmake files.
But that being the case. I can't think of any other way of handling this other than separating the modes. I'll post the new mode file when I get it done. Other matters need my attention right now. On 1/23/07, Tristan Carel <[EMAIL PROTECTED]> wrote:
On 1/23/07, Stuart Tett <[EMAIL PROTECTED]> wrote: > I downloaded the cmake-mode.el and noticed that it doesn't highlight > the CMakeCache.txt files. I customized it to do this. This is great! > Since these > files have "# comments" and "// comments" (I also allowed "/* comments > */" though I don't know if these are actually supported. And I set it > up to highlight the "KEY:TYPE=value" syntax. It works properly. However the patch also identify as comments the lines which begin with // in the CMake files. It is quiet confusing when your are confident in your favorite editor and not very used to the CMake syntax. So what about patching cmake-mode.el to provide 2 different modes, `cmake-mode' and `cmake-cache-mode'? Thank you very much, Emacs/CMake users will save some time thanks to your effort. -- Tristan Carel Music with dinner is an insult both to the cook and the violinist.
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
