OSDN Git Service

Fix PHP syntax highlighting. (#751)
authorJun Tajima <56220423+tjmprm77@users.noreply.github.com>
Sun, 25 Apr 2021 08:41:57 +0000 (17:41 +0900)
committerGitHub <noreply@github.com>
Sun, 25 Apr 2021 08:41:57 +0000 (17:41 +0900)
- Fix an issue where the string after the block whose color index is COLORINDEX_NORMALTEXT or COLORINDEX_USER1 is not highlighted correctly.
  (The processing of the fixed part is now the same as CrystalLineParser::ParseLineCJava() with this fix.)

Externals/crystaledit/editlib/parsers/php.cpp

index f9a9fb1..56ad4ce 100644 (file)
@@ -447,16 +447,10 @@ out:
                     {
                       DEFINE_BLOCK (nIdentBegin, COLORINDEX_FUNCNAME);
                     }
-                  else
-                    {
-                      goto next;
-                    }
                 }
               bRedefineBlock = true;
               bDecIndex = true;
               nIdentBegin = -1;
-next:
-              ;
             }
 
           //  Preprocessor start: $