Bug 124642

Summary: The keyword "default" is not colored as "switch" and "case" in PHP source code
Product: quanta Reporter: Fathi Boudra <fabo>
Component: generalAssignee: András Manţia <amantia>
Status: RESOLVED FIXED    
Severity: wishlist CC: ana
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Fathi Boudra 2006-03-31 15:44:25 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Debian testing/unstable Packages
OS:                Linux

This is a forwarded wishlist:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=349787

Maybe not really related to quanta, kate kpart ?

----------------------------------------------

Enter a switch block into PHP source:

switch($v) {
case 1:
    echo 'is 1';
    break;
default:
    echo 'not 1';
}

The "default" word will not be colored as switch and case (remain black).
Comment 1 András Manţia 2006-09-08 14:38:46 UTC
SVN commit 582156 by amantia:

Color the "default" keyword as "switch" and "case". This is in line with the C++ highlighting.

BUG: 124642

 M  +1 -1      php.xml  


--- branches/KDE/3.5/kdelibs/kate/data/php.xml #582155:582156
@@ -11,6 +11,7 @@
     <list name="control structures">
       <item>as</item>
       <item>case</item>
+      <item>default</item>
       <item>if</item>
       <item>else</item>
       <item>elseif</item>
@@ -38,7 +39,6 @@
       <item> catch </item>
       <item> class </item>
       <item> const </item>
-      <item> default </item>
       <item> extends </item>
       <item> final </item>
       <item> function </item>