<div dir="ltr">Hi!<div><br></div><div style>I just uploaded an Emacs package that provides syntax coloring for CMake scripts in Emacs. It is available at:</div><div style><br></div><div style>    <a href="https://github.com/Lindydancer/cmake-font-lock">https://github.com/Lindydancer/cmake-font-lock</a></div>
<div style>    </div><div style>Although the standard package have some syntax coloring support, this package raises the bar quite a bit. The main new feature is that arguments are colored according what type they are (the package is aware of all standard CMake functions, and can easily be extended with other functions).</div>
<div style><br></div><div style>The following is a list of things that are colored (taken from the documentation):</div><div style><br></div><div style><div>* Comments and quoted strings.</div><div><br></div><div>* Special functions like `if&#39;, `while&#39;, `function&#39;, and `include&#39; are colored as font-lock *keywords* (not to be confused with keywords in the CMake sense).</div>
<div><br></div><div>* Other function name are colored as, well, *functions*.</div><div><br></div><div>* The arguments of functions are colored according to the type, as specified by the function *signature*. The built-in signatures can color an arguments as a *variable*, a *function*, a *property*, a *target*, a *policy*, and finally a CMake keyword is colored as a *type*.</div>
<div><br></div><div>* The constants `true&#39;, `false&#39;, `yes&#39;, `no&#39;, `y&#39;, `n&#39;, `on&#39;, and `off&#39; are colored as *constants*.</div><div><br></div><div>* `${...}&#39; constructs are fontified as *variables*. Nested constructs are supported.</div>
<div><br></div><div>* For `$ENV{...}&#39;, `ENV&#39; is fontified as a *variable* and the content as a *constant*.</div><div><br></div><div>* For `$&lt;name:...&gt;&#39; constructs, `name&#39; is colored as a *constant*.</div>
<div><br></div><div>* For preprocessor definitions like `-DNAME&#39;, `NAME&#39; is colored as a *constant*.</div><div><br></div><div style>About me: I&#39;m an Emacs veteran with more than 20 years of experience (even though I&#39;m relatively new to CMake). I&#39;m the author of `cwarn-mode&#39;, `follow-mode&#39;, and I wrote the original java font-lock rules for Emacs.</div>
<div><br></div><div style>Sincerely,</div><div style>    Anders Lindgren</div><div style><br></div></div></div>