C++ syntax highlighting omission

Bug #126075 reported by undriedsea
2
Affects Status Importance Assigned to Milestone
gedit (Ubuntu)
Fix Released
Wishlist
Ubuntu Desktop Bugs

Bug Description

When opening a .cpp file, the C++ syntax highlighting is enabled. The C++ keyword "friend" however is not highlighted as it should be.

Revision history for this message
Andre M (maroneze-a) wrote :

Can you please provide some example code to reproduce the error? And what do you mean by 'not highlighted as it should be'? In my gedit (2.18.1) 'friend' is highlighted in red, and 'friends' for instance is not highlighted at all.

Revision history for this message
undriedsea (voidlogic7) wrote : Re: [Bug 126075] Re: C++ syntax highlighting omission

Ver: 2.18.1
In TimerDriver.h there is a class:

class TimerDriver
{
    friend void timerHandler(struct regs *r);

    public:
        TimerDriver();
        ~TimerDriver();
        void setTimerPhase(unsigned int hertz);
        void timerHardWait(unsigned int ticks);

    private:
        unsigned long timerTicks;
};

The :
friend void timerHandler(struct regs *r);
is not highlighted

I guess it was not a .cpp file like I said at first. Sorry

On 7/14/07, Andre M <email address hidden> wrote:
>
> Can you please provide some example code to reproduce the error? And
> what do you mean by 'not highlighted as it should be'? In my gedit
> (2.18.1) 'friend' is highlighted in red, and 'friends' for instance is
> not highlighted at all.
>
> --
> C++ syntax highlighting omission
> https://bugs.launchpad.net/bugs/126075
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. That works fine in gutsy, likely due to the change described on http://bugzilla.gnome.org/show_bug.cgi?id=312455

Changed in gedit:
assignee: nobody → desktop-bugs
importance: Undecided → Wishlist
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.