Ticket #16 (new defect) — at Initial Version
savannah: c is _not_ c++
Reported by: | slavazanko | Owned by: | |
---|---|---|---|
Priority: | trivial | Milestone: | 4.6.2 |
Component: | mcedit | Version: | 4.6.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | merged | Votes for changeset: |
Description
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.
Note: See
TracTickets for help on using
tickets.