<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 8, 2015 at 6:29 PM, Matthew Brush <span dir="ltr"><<a href="mailto:mbrush@codebrainz.ca" target="_blank">mbrush@codebrainz.ca</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=""><br>
<br>
On 2015-11-08 12:25 PM, Matthew Brush 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">
<br>
<br>
On 2015-11-08 3:19 PM, Lex Trotman 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">
On 9 November 2015 at 05:34, Devyn Collier Johnson<br>
<<a href="mailto:devyncjohnson@gmail.com" target="_blank">devyncjohnson@gmail.com</a>> 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">
[...]<br>
- Adding "*.i;" to "C="<br>
*.i - C source code which should not be preprocessed<br>
<a href="http://labor-liber.org/en/gnu-linux/development/extensions" rel="noreferrer" target="_blank">http://labor-liber.org/en/gnu-linux/development/extensions</a><br>
</blockquote>
<br>
g++ treats this as C++, all languages are *not* C :)<br>
<br>
This is the same problem as .h, it could be either.<br>
<br>
</blockquote>
<br>
I've been meaning to bring this up. We should move *.h to C++ now that<br>
C++ can use C tags. Having it under C means C++ headers don't work, but<br>
having it under C++ works for both C and C++ headers.<br>
<br>
</blockquote>
<br></span>
Oops, I forgot the tags from the C++ header wouldn't be visible in C files (the opposite is not true). I still think *.h should be for C++, but it's probably a hard sell for Geany crowd, it being written in plain C and all :)</blockquote><div><br></div><div>I made it the opposite way too here (to be fully reviewed/merged):</div><div><br></div><div><a href="https://github.com/techee/geany/commit/5c18b3d1328b8d3dff923a2a02bc3cc6b41a333c">https://github.com/techee/geany/commit/5c18b3d1328b8d3dff923a2a02bc3cc6b41a333c</a><br></div><div><br></div><div>see the langs_compatible() function. I would personally also like what you suggest but another problem is that e.g. a C variable named "template"(plus all the extra keywords C++ has) could screw up the parsing.</div><div><br></div><div>Cheers,</div><div><br></div><div>Jiri</div></div></div></div>