URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13144>
Summary: c is _not_ c++ Project: GNU Midnight Commander Submitted by: ossi Submitted on: Sat 05/21/2005 at 18:55 Category: Editor Severity: 3 - Normal Status: None Privacy: Public Assigned to: None Open/Closed: Open Release: current (CVS or snapshot) Platform Version: All _______________________________________________________ Details: 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. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13144> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel