ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_ada95.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3 if (!isset ($BEAUT_PATH)) return;
4 require_once("$BEAUT_PATH/Beautifier/HFile.php");
5 
6 class HFile_ada95 extends HFile
7 {
8 
9 function HFile_ada95()
10 {
11 $this->HFile();
12 
13 /*************************************/
14 // Beautifier Highlighting Configuration File
15 // Ada95
16 /*************************************/
17 // Flags
18 
19 $this->nocase = "1";
20 $this->notrim = "0";
21 $this->perl = "0";
22 
23 // Colours
24 
25 $this->colours = array("blue", "purple", "gray");
26 $this->quotecolour = "blue";
27 $this->blockcommentcolour = "green";
28 $this->linecommentcolour = "green";
29 
30 // Indent Strings
31 
32 $this->indent = array();
33 $this->unindent = array();
34 
35 // String characters and delimiters
36 
37 $this->stringchars = array("\"", "'");
38 $this->delimiters = array();
39 $this->escchar = "";
40 
41 // Comment settings
42 
43 $this->linecommenton = array("--");
44 $this->blockcommenton = array("");
45 $this->blockcommentoff = array("");
46 
47 // Keywords (keyword mapping to colour number)
48 
49 $this->keywords = array(
50  "abort" => "1",
51  "abs" => "1",
52  "abstract" => "1",
53  "accept" => "1",
54  "access" => "1",
55  "aliased" => "1",
56  "all" => "1",
57  "and" => "1",
58  "array" => "1",
59  "at" => "1",
60  "begin" => "1",
61  "body" => "1",
62  "case" => "1",
63  "constant" => "1",
64  "declare" => "1",
65  "delay" => "1",
66  "delta" => "1",
67  "digits" => "1",
68  "do" => "1",
69  "else" => "1",
70  "elsif" => "1",
71  "end" => "1",
72  "entry" => "1",
73  "exception" => "1",
74  "exit" => "1",
75  "for" => "1",
76  "function" => "1",
77  "goto" => "1",
78  "generic" => "1",
79  "if" => "1",
80  "in" => "1",
81  "is" => "1",
82  "limited" => "1",
83  "loop" => "1",
84  "mod" => "1",
85  "new" => "1",
86  "not" => "1",
87  "null" => "1",
88  "of" => "1",
89  "or" => "1",
90  "others" => "1",
91  "out" => "1",
92  "package" => "1",
93  "pragma" => "1",
94  "private" => "1",
95  "procedure" => "1",
96  "protected" => "1",
97  "raise" => "1",
98  "range" => "1",
99  "record" => "1",
100  "rem" => "1",
101  "renames" => "1",
102  "requeue" => "1",
103  "return" => "1",
104  "reverse" => "1",
105  "select" => "1",
106  "separate" => "1",
107  "subtype" => "1",
108  "tagged" => "1",
109  "task" => "1",
110  "terminate" => "1",
111  "then" => "1",
112  "type" => "1",
113  "until" => "1",
114  "use" => "1",
115  "when" => "1",
116  "while" => "1",
117  "with" => "1",
118  "xor" => "1",
119  "boolean" => "2",
120  "integer" => "2",
121  "false" => "2",
122  "float" => "2",
123  "natural" => "2",
124  "positive" => "2",
125  "real" => "2",
126  "true" => "2",
127  "vector" => "2",
128  ".." => "3");
129 
130 // Special extensions
131 
132 // Each category can specify a PHP function that takes in the function name, and returns an alternative.
133 // This is great for doing links to manuals, etc.
134 
135 $this->linkscripts = array(
136  "1" => "donothing",
137  "2" => "donothing",
138  "3" => "donothing");
139 }
140 
141 
142 
143 function donothing($keywordin)
144 {
145  return $keywordin;
146 }
147 
148 }?>