id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
16	savannah: c is _not_ c++	slavazanko		"Original: http://savannah.gnu.org/bugs/?13144

||Submitted by:||Oswald Buddenhagen <ossi>||Submitted on:||Sat 21 May 2005 06:55:47 PM UTC||
||Category:||Editor||Severity:||3 - Normal||
||Status:||None	Privacy:||Public||
||Assigned to:||None||Open/Closed:||Open||
||Release:||current (CVS or snapshot)||Operating System:||All||

Discussion:
{{{
Sun 06 Jul 2008 04:14:54 PM UTC, comment #1:

So use .hpp for C++ header files ;-)
	Jan Engelhardt <hirogen2>

Sat 21 May 2005 06:55:47 PM UTC, original submission:

highlighting c++ keywords like ""class"", ""new"", etc. in plain c 
files is outright wrong and consequently annoying.

the only problem are .h files, as their language is not obvious 
from the extension. i think the presence of class definitions is a 
sufficient criterion for c++, but recognizing them reliably 
requires a minimal parser - even regexps won't do ...

ps: don't tell me i shouldn't be using c++ keywords in c headers, 
because the header might be included in c++ files later - this is 
my business. 
}}}
"	defect	new	trivial		mcedit								
