ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_acpi.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3 if (!isset($BEAUT_PATH)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_acpi extends HFile
8  {
9  public function HFile_acpi()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // ASL
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "0";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple", "gray", "brown", "blue", "purple", "gray");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
31  $this->indent = array("{");
32  $this->unindent = array("}");
33 
34  // String characters and delimiters
35 
36  $this->stringchars = array("\"", "'");
37  $this->delimiters = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
38  $this->escchar = "";
39 
40  // Comment settings
41 
42  $this->linecommenton = array("//");
43  $this->blockcommenton = array("");
44  $this->blockcommentoff = array("");
45 
46  // Keywords (keyword mapping to colour number)
47 
48  $this->keywords = array(
49  "Break" => "1",
50  "BreakPoint" => "1",
51  "Continue" => "1",
52  "Else" => "1",
53  "ElseIf" => "1",
54  "Fatal" => "1",
55  "If" => "1",
56  "Load" => "1",
57  "Noop" => "1",
58  "Notify" => "1",
59  "Release" => "1",
60  "Reset" => "1",
61  "Return" => "1",
62  "Signal" => "1",
63  "Sleep" => "1",
64  "Stall" => "1",
65  "Switch" => "1",
66  "Unload" => "1",
67  "While" => "1",
68  "BankField" => "2",
69  "CreateBitField" => "2",
70  "CreateByteField" => "2",
71  "CreateDWordField" => "2",
72  "CreateField" => "2",
73  "CreateQWordField" => "2",
74  "CreateWordField" => "2",
75  "DataTableRegion" => "2",
76  "Device" => "2",
77  "Event" => "2",
78  "Field" => "2",
79  "IndexField" => "2",
80  "Method" => "2",
81  "Mutex" => "2",
82  "OperationRegion" => "2",
83  "PowerResource" => "2",
84  "Processor" => "2",
85  "ThermalZone" => "2",
86  "CMOS" => "3",
87  "EmbeddedControl" => "3",
88  "PCI_Config" => "3",
89  "PciBarTarget" => "3",
90  "SMBus" => "3",
91  "SystemIO" => "3",
92  "SystemMemory" => "3",
93  "AnyAcc" => "4",
94  "BufferAcc" => "4",
95  "ByteAcc" => "4",
96  "DWordAcc" => "4",
97  "QWordAcc" => "4",
98  "WordAcc" => "4",
99  "Alias" => "5",
100  "Name" => "5",
101  "Scope" => "5",
102  "Acquire" => "6",
103  "Add" => "6",
104  "And" => "6",
105  "Buff" => "6",
106  "Concatenate" => "6",
107  "ConcatenateResTemplate" => "6",
108  "CondRefOf" => "6",
109  "Decrement" => "6",
110  "DecStr" => "6",
111  "DerefOf" => "6",
112  "Divide" => "6",
113  "FindSetLeftBit" => "6",
114  "FindSetRightBit" => "6",
115  "FromBCD" => "6",
116  "HexStr" => "6",
117  "Increment" => "6",
118  "Index" => "6",
119  "Int" => "6",
120  "LAnd" => "6",
121  "LEqual" => "6",
122  "LGreater" => "6",
123  "LGreaterEqual" => "6",
124  "LLess" => "6",
125  "LLessEqual" => "6",
126  "LNot" => "6",
127  "LNotEqual" => "6",
128  "LoadTable" => "6",
129  "LOr" => "6",
130  "Match" => "6",
131  "Mid" => "6",
132  "Mod" => "6",
133  "Multiply" => "6",
134  "NAnd" => "6",
135  "NOr" => "6",
136  "Not" => "6",
137  "ObjectType" => "6",
138  "Or" => "6",
139  "RefOf" => "6",
140  "ShiftLeft" => "6",
141  "ShiftRight" => "6",
142  "SizeOf" => "6",
143  "Store" => "6",
144  "String" => "6",
145  "Subtract" => "6",
146  "ToBCD" => "6",
147  "Wait" => "6",
148  "Xor" => "6",
149  "Integer" => "7",
150  "Sting" => "7",
151  "Buffer" => "7");
152 
153  // Special extensions
154 
155  // Each category can specify a PHP function that returns an altered
156  // version of the keyword.
157 
158 
159 
160  $this->linkscripts = array(
161  "1" => "donothing",
162  "2" => "donothing",
163  "3" => "donothing",
164  "4" => "donothing",
165  "5" => "donothing",
166  "6" => "donothing",
167  "7" => "donothing");
168  }
169 
170 
171  public function donothing($keywordin)
172  {
173  return $keywordin;
174  }
175  }
$BEAUT_PATH
Definition: HFile_acpi.php:2
donothing($keywordin)
Definition: HFile_acpi.php:171
Create styles array
The data for the language used.
Definition: HFile.php:21