[bug #13144] c is _not_ c++


                 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



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:


  Message sent via/by Savannah

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]