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++	ossi	winnie	"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||

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. 
}}}

Comment 1 by Jan Engelhardt <hirogen2> at Sun 06 Jul 2008 04:14:54 PM UTC:
{{{
So use .hpp for C++ header files ;-)
}}}

"	defect	closed	trivial	4.6.2	mcedit	4.6.1	fixed	approved,vote-slavazanko,vote-metux				no branch	
