ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_vospl1.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  class HFile_vospl1 extends HFile{
6  function HFile_vospl1(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // VOS PL/1
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "0";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple", "brown");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array("{");
28 $this->unindent = array("}");
29 
30 // String characters and delimiters
31 
32 $this->stringchars = array("\"", "'");
33 $this->delimiters = array("~", "!", "@", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
34 $this->escchar = "";
35 
36 // Comment settings
37 
38 $this->linecommenton = array("//");
39 $this->blockcommenton = array("/*");
40 $this->blockcommentoff = array("*/");
41 
42 // Keywords (keyword mapping to colour number)
43 
44 $this->keywords = array(
45  "aligned" => "1",
46  "allocate" => "1",
47  "auto" => "1",
48  "based" => "1",
49  "begin" => "1",
50  "bin" => "1",
51  "binary" => "1",
52  "case" => "1",
53  "call" => "1",
54  "char" => "1",
55  "char_varying" => "1",
56  "character" => "1",
57  "close" => "1",
58  "const" => "1",
59  "continue" => "1",
60  "defined" => "1",
61  "declare" => "1",
62  "dcl" => "1",
63  "default" => "1",
64  "delete" => "1",
65  "do" => "1",
66  "double" => "1",
67  "else" => "1",
68  "end" => "1",
69  "entry" => "1",
70  "enum" => "1",
71  "extern" => "1",
72  "ext" => "1",
73  "fixed" => "1",
74  "float" => "1",
75  "for" => "1",
76  "format" => "1",
77  "free" => "1",
78  "get" => "1",
79  "goto" => "1",
80  "if" => "1",
81  "int" => "1",
82  "like" => "1",
83  "long" => "1",
84  "on" => "1",
85  "open" => "1",
86  "pointer" => "1",
87  "ptr" => "1",
88  "proc" => "1",
89  "procedure" => "1",
90  "put" => "1",
91  "read" => "1",
92  "register" => "1",
93  "return" => "1",
94  "returns" => "1",
95  "revert" => "1",
96  "rewrite" => "1",
97  "short" => "1",
98  "signal" => "1",
99  "signed" => "1",
100  "sizeof" => "1",
101  "static" => "1",
102  "stop" => "1",
103  "struct" => "1",
104  "switch" => "1",
105  "then" => "1",
106  "typedef" => "1",
107  "union" => "1",
108  "unsigned" => "1",
109  "var" => "1",
110  "void" => "1",
111  "volatile" => "1",
112  "while" => "1",
113  "write" => "1",
114  "$if" => "1",
115  "$endif" => "1",
116  "%include" => "2",
117  "%list" => "2",
118  "%nolist" => "2",
119  "%options" => "2",
120  "%page" => "2",
121  "%replace" => "2",
122  "+" => "4",
123  "-" => "4",
124  "=" => "4",
125  "//" => "4",
126  "/" => "4",
127  "%" => "4",
128  "&" => "4",
129  ">" => "4",
130  "<" => "4",
131  "^" => "4",
132  "!" => "4",
133  "|" => "4");
134 
135 // Special extensions
136 
137 // Each category can specify a PHP function that returns an altered
138 // version of the keyword.
139 
140 
141 
142 $this->linkscripts = array(
143  "1" => "donothing",
144  "2" => "donothing",
145  "4" => "donothing");
146 }
147 
148 
149 function donothing($keywordin)
150 {
151  return $keywordin;
152 }
153 
154 }?>