<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 6, 2016 at 9:23 PM, Thomas Martitz <span dir="ltr"><<a href="mailto:kugel@rockbox.org" target="_blank">kugel@rockbox.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">Am 06.01.2016 um 21:12 schrieb Jiří Techet:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
<br>
    It's indeed at least interesting to consider, because at least for .h<br>
    headers there really is some mixed stuff all over the place -- even,<br>
    simply look in Scintilla's source tree.<br>
<br>
<br>
+1 for having the headers parsed/lexed by the C++ parser (with sources it may be a bit dangerous and typically the sources have the right C++ extension).<br>
<br>
<br>
</blockquote>
<br></span>
Not replying to Jiří specifically.<br>
<br>
-1. .h is legitimately a C, it's just that many people get it wrong. And I don't want C++ keywords highlighted in C headers while they are not highlighted it C source files. This is just confusing.<br></blockquote><div><br></div><div>I agree with Matthew here - I think the "damage" caused by parsing C headers with the C++ parser/lexer is much smaller than vice versa. Actually a few months back a user of my ProjectOrganizer plugin wrote me just because of that - he had a C++ project with "h" headers and was surprised that tag generation didn't work for him.</div><div><br></div><div>I created (a highly sophisticated) pull request here:</div><div><br></div><div><a href="https://github.com/geany/geany/pull/857">https://github.com/geany/geany/pull/857</a> </div><div><br></div><div>Power users can always add *.h back to C types but I think having it in C++ is a better default.</div><div><br></div><div>Cheers,</div><div><br></div><div>Jiri</div></div></div></div>