Ticket #2346: php.syntax.diff

File php.syntax.diff, 3.2 KB (added by ianzag, 14 years ago)

Add new PHP keywords

  • php.syntax

    old new  
    1111 
    1212###################### 
    1313# Control structures 
    14  
    1514    keyword whole break brightmagenta 
    1615    keyword whole case brightmagenta 
    17     keyword whole class brightmagenta 
    1816    keyword whole continue brightmagenta 
    1917    keyword whole declare brightmagenta 
    2018    keyword whole default brightmagenta 
     
    2321    keyword whole echo brightmagenta 
    2422    keyword whole else brightmagenta 
    2523    keyword whole elseif brightmagenta 
     24    keyword whole enddeclare brightmagenta 
    2625    keyword whole endif brightmagenta 
     26    keyword whole endfor brightmagenta 
     27    keyword whole endforeach brightmagenta 
     28    keyword whole endswitch brightmagenta 
    2729    keyword whole endwhile brightmagenta 
    28     keyword whole extends brightmagenta 
    2930    keyword whole false brightmagenta 
    3031    keyword whole for brightmagenta 
    3132    keyword whole foreach brightmagenta 
    3233    keyword whole function brightmagenta 
    3334    keyword whole global brightmagenta 
     35    keyword whole goto brightmagenta 
    3436    keyword whole if brightmagenta 
    3537    keyword whole include brightmagenta 
    3638    keyword whole include_once brightmagenta 
     
    4345    keyword whole true brightmagenta 
    4446    keyword whole while brightmagenta 
    4547 
     48# OOP related keywords 
     49    keyword whole abstract brightmagenta 
     50    keyword whole catch brightmagenta 
     51    keyword whole class brightmagenta 
     52    keyword whole clone brightmagenta 
     53    keyword whole const brightmagenta 
     54    keyword whole extends brightmagenta 
     55    keyword whole final brightmagenta 
     56    keyword whole implements brightmagenta 
     57    keyword whole interface brightmagenta 
     58    keyword whole instanceof brightmagenta 
     59    keyword whole namespace brightmagenta 
     60    keyword whole private brightmagenta 
     61    keyword whole protected brightmagenta 
     62    keyword whole public brightmagenta 
     63    keyword whole throw brightmagenta 
     64    keyword whole try brightmagenta 
     65    keyword whole use brightmagenta 
     66 
     67# Predefined exceptions 
     68    keyword whole Exception yellow 
     69    keyword whole ErrorException yellow 
     70 
     71# Predefined interfaces 
     72    keyword whole ArrayAccess yellow 
     73    keyword whole Iterator yellow 
     74    keyword whole IteratorAggregate yellow 
     75    keyword whole Serializable yellow 
     76    keyword whole Traversable yellow 
    4677 
    4778# .NET Functions 
    4879    keyword whole dotnet_load yellow 
     
    11981229    keyword whole java_last_exception_clear yellow 
    11991230    keyword whole java_last_exception_get yellow 
    12001231 
     1232# JSON Functions 
     1233    keyword whole json_encode yellow 
     1234    keyword whole json_decode yellow 
     1235    keyword whole json_last_error yellow 
     1236 
    12011237# KADM5 
    12021238    keyword whole kadm5\_\[0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\] yellow 
    12031239 
     
    30653101    keyword whole as white 
    30663102    keyword whole and white 
    30673103    keyword whole or white 
     3104    keyword whole xor white 
    30683105 
    30693106# Magic constants 
     3107    keyword whole __DIR__ brightred 
    30703108    keyword whole __FILE__ brightred 
    30713109    keyword whole __LINE__ brightred 
    30723110    keyword whole __FUNCTION__ brightred 
    30733111    keyword whole __CLASS__ brightred 
    30743112    keyword whole __METHOD__ brightred 
     3113    keyword whole __NAMESPACE__ brightred 
    30753114 
    30763115    keyword whole parent brightmagenta 
    30773116    keyword whole $this brightmagenta