summaryrefslogtreecommitdiffstats
path: root/quanta/data/dtep/php/description.rc
blob: 7fd2b37b2e4c34f7a1ff7cc7ca33f6b69e36c711 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[General]
Name = PHP
MimeTypes = application/x-php
DefaultExtension = php
NumOfPages = 0
CaseSensitive = true
Family = 2
Documentation = PHP

[Extra tags]
List = apache_lookup_uri
DefaultAttrType = string
apache_lookup_uri = filename

[Extra rules]
StructGroupsCount = 5
TagAutoCompleteAfter = @
VariableGroupIndex = 2
FunctionGroupIndex = 3
ClassGroupIndex = 4
ObjectGroupIndex = 5
MemberAutoCompleteAfter = (?:\.|->)$

[Parsing rules]
AreaBorders = <? ?>, <* *>, <% %>
Tags = script(language)
Comments = // EOL, /* */, # 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
DefinitionRx = ((?:include|require)(?:_once)?(?:\\s+(?:\$\w+\\s*)?|\\s*\((?:\\s+|\\s*\$\w+\\s*)\)\\s*);)
DefinitionRx_Minimal = true
HasFileName = true
ParseFile = true
New_FileNameRx_Not_Used = (?:include|require)(?:_once)?(\\s+(?:\$\w+\\s*)?|\\s*\((?:\\s+|\\s*\$\w+\\s*)\)\\s*);
FileNameRx = (?:^include|^require|^include_once|^require_once|\(|\)|\"|\'|;$)

[StructGroup_2]
Name = Variables
No_Name = No Variables
Icon = abs
DefinitionRx = \$+([a-zA-Z0-9_\x7f-\xff]*[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)
UsageRx = \$+([a-zA-Z0-9_\x7f-\xff]*[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)
AutoCompleteAfter = \$+[a-zA-Z0-9_\x7f-\xff]*$
AppendToTags = true
ParentGroup = Classes

[StructGroup_3]
Name = Functions
No_Name = No Functions
Icon = mini-modules
DefinitionRx = \bfunction[\\s]+&?([0-9a-zA-Z_\x7f-\xff]*[\\s]*(?:\(.*\)){0,1})
AppendToTags = true
ParentGroup = Classes

[StructGroup_4]
Name = Classes
No_Name = No Classes
Icon = classnew
DefinitionRx = \\sclass[\\s]+([0-9a-zA-Z_\x7f-\xff]*)[\\s]*
UsageRx = \B\$+([a-zA-Z0-9_\x7f-\xff]*[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)$
AutoCompleteAfter = \bnew[\\s]+$
RemoveFromAutoCompleteWord = \bnew[\\s]*

[StructGroup_5]
Name = Objects
No_Name = No Objects
Icon = classnew
DefinitionRx =\$+([a-zA-Z0-9_\x7f-\xff]*[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[\\s]*=[\\s]*new[\\s]*[a-zA-Z0-9_\x7f-\xff]*[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*[\\s]*[;\(]
TypeRx = [\\s]*new[\\s]*([a-zA-Z0-9_\x7f-\xff]*[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[\\s]*