Home Download Buy Blog Forum Support

[ST3] Syntax highlighting broken in long C++ sources

[ST3] Syntax highlighting broken in long C++ sources

Postby Shirk on Thu Nov 21, 2013 8:52 am

Hi,
I'm using the latest ST3 developer build and I noticed an annoying bug.
I have a C++ file implementing a state machine which consists of roughly 20+ inline C++ class definitions in about 800 lines of code.

With ST2 I could work with this file just fine and the syntax and scope was detected down to the very last line.
ST3 however stops highlighting (and as it looks to me) scope detection somewhere after about half of my code.

I can reproduce this even with a sample file containing a dummy of what my code looks like but using only empty states.
Each class resembles something like this:

Code: Select all
class SubStateXX : public BaseState //{{{
{
public:
   SubStateXX( StateID id )
     : BaseState( id ) {};

   virtual void OnEntry()
   {
   };

   virtual void OnExit()
   {
   };

   virtual StateID OnEvent( EventType event )
   {
      switch( event )
      {
      }
      return GetSuperState();
   };
}; //}}}


I've attached my sample file - for me highlighting around line 460 in ST3 and works without error in ST2.
Shirk
 
Posts: 3
Joined: Wed Feb 22, 2012 6:52 am

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 28 guests