[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pdt-dev] Ident && Match Brackets

Hello guys,
 
in the following example I found three problems:
 
    - After the PHPDoc Tag the ident move all followed line one space to the right site.
    - In a nested switch/case, after the 2. switch block, the ident move all followed lines too much to the right site.
    - The PDT function Matchbracket found the '}' in the comment line. So the end bracket of the function will not be found.
 
 
Axel
 
==========================================
 
<?php
/**
 * InfoText
 *
 */
 
 function fctPrintHello(){
 
     switch($a){
         case 'A':
             switch($b){
                 case 'B':
                     print $b;
                     break;
             }
                 default:
                     print $a;
     }
 
     print "Hello";
     // if(true)
     //
     // }
 
 }

?>
==========================================