Bug 124642 - The keyword "default" is not colored as "switch" and "case" in PHP source code
Summary: The keyword "default" is not colored as "switch" and "case" in PHP source code
Status: RESOLVED FIXED
Alias: None
Product: quanta
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-31 15:44 UTC by Fathi Boudra
Modified: 2006-09-08 14:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>