[General]
Name = PHP
DefaultExtension = php
Groups =
NumOfPages = 0
CaseSensitive = true
Family = 2

[Extra tags]

List = apache_lookup_uri
DefaultAttrType = string

apache_lookup_uri = filename

[Extra rules]
StructGroupsCount = 5
TagAutoCompleteAfter = none

[Parsing rules]
AreaBorders = <? ?>, <* *>, <% %>
Tags = script(language)
Comments = // EOL, /* */
StructKeywords = for;foreach;if;else;elseif;while;do;switch;declare;function;class
LocalScopeKeywords=function;class
StructBeginStr = {
StructEndStr = }
StructRx = \\{|\\}
MayContain = php

[StructGroup_1]
Name = Inclusions
No_Name = No Inclusions
Icon = attach
SearchRx = (?:include|require)(?:_once)?(?:\\s+(?:\$\w+\\s*)?|\\s*\((?:\\s+|\\s*\$\w+\\s*)\)\\s*);
SearchRx_Minimal = true
ClearRx = \n
HasFileName = true
ParseFile = true
FileNameRx = (?:^include|^require|^include_once|^require_once|\(|\)|\"|\'|;$)

[StructGroup_2]
Name = Variables
No_Name = No Variables
Icon = abs
SearchRx = \$+[a-zA-Z0-9_\x7f-\xff]*[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*
ClearRx = \$
AutoCompleteAfter = \$+[a-zA-Z0-9_\x7f-\xff]*$

[StructGroup_3]
Name = Functions
No_Name = No Functions
Icon = mini-modules
SearchRx = \bfunction[\\s]+[0-9a-zA-Z_\x7f-\xff]*[\\s]*(?:\(.*\)){0,1}
ClearRx = function[\\s]+

[StructGroup_4]
Name = Classes
No_Name = No Classes
Icon = classnew
SearchRx = \bclass[\\s]+[0-9a-zA-Z_\x7f-\xff]*[\\s]*
ClearRx = (?:class[\s]+|\n)
AutoCompleteAfter = \bnew[\\s]+$
RemoveFromAutoCompleteWord = \bnew[\\s]*

[StructGroup_5]
Name = Objects
No_Name = No Objects
Icon = classnew
SearchRx =  \$+[a-zA-Z0-9_\x7f-\xff]*[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*[\\s]*=[\\s]*new[\\s]
ClearRx = (?:=[\\s]*new[\\s]|\$)
