ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_sybase11x.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_sybase11x extends HFile
8  {
9  public function HFile_sybase11x()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Sybase 11.x SQL
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "1";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "gray", "gray", "purple", "brown", "blue", "purple");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
31  $this->indent = array("begin");
32  $this->unindent = array("end");
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  "activation" => "1",
50  "add" => "1",
51  "all" => "1",
52  "alter" => "1",
53  "and" => "1",
54  "any" => "1",
55  "arith_overflow" => "1",
56  "as" => "1",
57  "asc" => "1",
58  "at" => "1",
59  "authorization" => "1",
60  "avg" => "7",
61  "begin" => "1",
62  "between" => "1",
63  "break" => "1",
64  "browse" => "1",
65  "bulk" => "1",
66  "by" => "1",
67  "cascade" => "1",
68  "char_convert" => "1",
69  "check" => "1",
70  "checkpoint" => "1",
71  "close" => "1",
72  "clustered" => "1",
73  "commit" => "1",
74  "compute" => "1",
75  "confirm" => "1",
76  "connect" => "1",
77  "constraint" => "1",
78  "consumers" => "1",
79  "continue" => "1",
80  "controlrow" => "1",
81  "convert" => "7",
82  "count" => "7",
83  "create" => "1",
84  "current" => "1",
85  "cursor" => "1",
86  "database" => "1",
87  "dbcc" => "1",
88  "deallocate" => "1",
89  "declare" => "1",
90  "default" => "1",
91  "delete" => "1",
92  "desc" => "1",
93  "disk" => "1",
94  "distinct" => "1",
95  "double" => "1",
96  "drop" => "1",
97  "dummy" => "1",
98  "dump" => "1",
99  "else" => "1",
100  "end" => "1",
101  "endtran" => "1",
102  "errlvl" => "1",
103  "errordata" => "1",
104  "errorexit" => "1",
105  "escape" => "1",
106  "except" => "1",
107  "exclusive" => "1",
108  "exec" => "1",
109  "execute" => "1",
110  "exists" => "1",
111  "exit" => "1",
112  "external" => "1",
113  "fetch" => "1",
114  "fillfactor" => "1",
115  "for" => "1",
116  "foreign" => "1",
117  "from" => "1",
118  "goto" => "1",
119  "grant" => "1",
120  "group" => "1",
121  "having" => "1",
122  "holdlock" => "1",
123  "identity_insert" => "1",
124  "identity_start" => "1",
125  "if" => "1",
126  "in" => "1",
127  "index" => "1",
128  "insert" => "1",
129  "intersect" => "1",
130  "into" => "1",
131  "is" => "1",
132  "isolation" => "1",
133  "key" => "1",
134  "kill" => "1",
135  "level" => "1",
136  "like" => "1",
137  "lineno" => "1",
138  "load" => "1",
139  "max" => "7",
140  "max_rows_per_page" => "1",
141  "membership" => "1",
142  "min" => "7",
143  "mirror" => "1",
144  "mirrorexit" => "1",
145  "national" => "1",
146  "noholdlock" => "1",
147  "nonclustered" => "1",
148  "not" => "1",
149  "null" => "1",
150  "numeric_transaction" => "1",
151  "of" => "1",
152  "off" => "1",
153  "offsets" => "1",
154  "on" => "1",
155  "once" => "1",
156  "online" => "1",
157  "only" => "1",
158  "open" => "1",
159  "option" => "1",
160  "or" => "1",
161  "order" => "1",
162  "over" => "1",
163  "partition" => "1",
164  "passwd" => "1",
165  "perm" => "1",
166  "permanent" => "1",
167  "plan" => "1",
168  "precision" => "1",
169  "prepare" => "1",
170  "primary" => "1",
171  "print" => "1",
172  "privileges" => "1",
173  "proc" => "1",
174  "procedure" => "1",
175  "processexit" => "1",
176  "proxy" => "1",
177  "public" => "1",
178  "raiserror" => "1",
179  "read" => "1",
180  "readtext" => "1",
181  "reconfigure" => "1",
182  "references" => "1",
183  "replace" => "1",
184  "return" => "3",
185  "revoke" => "1",
186  "role" => "1",
187  "rollback" => "1",
188  "rowcount" => "1",
189  "rows" => "1",
190  "rule" => "1",
191  "save" => "1",
192  "schema" => "1",
193  "select" => "1",
194  "session" => "1",
195  "set" => "1",
196  "setuser" => "1",
197  "shared" => "1",
198  "shutdown" => "1",
199  "some" => "1",
200  "statistics" => "1",
201  "stripe" => "1",
202  "sum" => "7",
203  "syb_identity" => "1",
204  "syb_restree" => "1",
205  "table" => "1",
206  "temp" => "1",
207  "temporary" => "1",
208  "textsize" => "1",
209  "to" => "1",
210  "tran" => "1",
211  "transaction" => "1",
212  "trigger" => "1",
213  "truncate" => "1",
214  "tsequal" => "7",
215  "union" => "1",
216  "unique" => "1",
217  "unpartition" => "1",
218  "update" => "1",
219  "use" => "1",
220  "user" => "7",
221  "user_option" => "1",
222  "using" => "1",
223  "values" => "1",
224  "varying" => "1",
225  "view" => "1",
226  "waitfor" => "1",
227  "where" => "1",
228  "while" => "1",
229  "with" => "1",
230  "work" => "1",
231  "writetext" => "1",
232  "absolute" => "2",
233  "action" => "2",
234  "allocate" => "2",
235  "are" => "2",
236  "assertion" => "2",
237  "bit" => "2",
238  "bit_length" => "2",
239  "both" => "2",
240  "cascaded" => "2",
241  "case" => "2",
242  "cast" => "2",
243  "catalog" => "2",
244  "char" => "7",
245  "char_length" => "7",
246  "character" => "2",
247  "character_length" => "2",
248  "coalesce" => "7",
249  "collate" => "2",
250  "collation" => "2",
251  "column" => "2",
252  "connection" => "2",
253  "constraints" => "2",
254  "corresponding" => "2",
255  "cross" => "2",
256  "current_date" => "2",
257  "current_time" => "2",
258  "current_timestamp" => "2",
259  "current_user" => "2",
260  "date" => "2",
261  "day" => "2",
262  "dec" => "2",
263  "decimal" => "2",
264  "deferrable" => "2",
265  "deferred" => "2",
266  "describe" => "2",
267  "descriptor" => "2",
268  "diagnostics" => "2",
269  "disconnect" => "2",
270  "domain" => "2",
271  "end-exec" => "2",
272  "exception" => "2",
273  "extract" => "2",
274  "false" => "2",
275  "first" => "2",
276  "float" => "2",
277  "found" => "2",
278  "full" => "2",
279  "get" => "2",
280  "global" => "2",
281  "go" => "2",
282  "hour" => "2",
283  "immediate" => "2",
284  "indicator" => "2",
285  "initially" => "2",
286  "inner" => "2",
287  "input" => "2",
288  "insensitive" => "2",
289  "int" => "2",
290  "integer" => "2",
291  "interval" => "2",
292  "join" => "2",
293  "language" => "2",
294  "last" => "2",
295  "leading" => "2",
296  "left" => "2",
297  "local" => "2",
298  "lower" => "7",
299  "match" => "2",
300  "minute" => "2",
301  "module" => "2",
302  "month" => "2",
303  "names" => "2",
304  "natural" => "2",
305  "nchar" => "2",
306  "next" => "2",
307  "no" => "2",
308  "nullif" => "2",
309  "numeric" => "2",
310  "octet_length" => "2",
311  "outer" => "2",
312  "output" => "2",
313  "overlaps" => "2",
314  "pad" => "2",
315  "partial" => "2",
316  "position" => "2",
317  "preserve" => "2",
318  "prior" => "2",
319  "real" => "2",
320  "relative" => "2",
321  "restrict" => "2",
322  "right" => "7",
323  "scroll" => "2",
324  "second" => "2",
325  "section" => "2",
326  "session_user" => "2",
327  "size" => "2",
328  "smallint" => "2",
329  "space" => "7",
330  "sql" => "2",
331  "sqlcode" => "2",
332  "sqlerror" => "2",
333  "sqlstate" => "2",
334  "substring" => "7",
335  "system_user" => "2",
336  "then" => "2",
337  "time" => "2",
338  "timestamp" => "2",
339  "timezone_hour" => "2",
340  "timezone_minute" => "2",
341  "trailing" => "2",
342  "translate" => "2",
343  "translation" => "2",
344  "trim" => "2",
345  "true" => "2",
346  "unknown" => "2",
347  "upper" => "7",
348  "usage" => "2",
349  "value" => "2",
350  "varchar" => "2",
351  "varbinary" => "2",
352  "when" => "2",
353  "whenever" => "2",
354  "write" => "2",
355  "year" => "2",
356  "zone" => "2",
357  "after" => "3",
358  "alias" => "3",
359  "async" => "3",
360  "before" => "3",
361  "boolean" => "3",
362  "breadth" => "3",
363  "call" => "3",
364  "completion" => "3",
365  "cycle" => "3",
366  "data" => "3",
367  "depth" => "3",
368  "dictionary" => "3",
369  "each" => "3",
370  "elseif" => "3",
371  "equals" => "3",
372  "general" => "3",
373  "ignore" => "3",
374  "leave" => "3",
375  "less" => "3",
376  "limit" => "3",
377  "loop" => "3",
378  "modify" => "3",
379  "new" => "3",
380  "none" => "3",
381  "object" => "3",
382  "oid" => "3",
383  "old" => "3",
384  "operation" => "3",
385  "operators" => "3",
386  "others" => "3",
387  "parameters" => "3",
388  "pendant" => "3",
389  "preorder" => "3",
390  "private" => "3",
391  "protected" => "3",
392  "recursive" => "3",
393  "ref" => "3",
394  "referencing" => "3",
395  "resignal" => "3",
396  "returns" => "3",
397  "routine" => "3",
398  "row" => "3",
399  "savepoint" => "3",
400  "search" => "3",
401  "sensitive" => "3",
402  "sequence" => "3",
403  "signal" => "3",
404  "similar" => "3",
405  "sqlexception" => "3",
406  "structure" => "3",
407  "test" => "3",
408  "there" => "3",
409  "type" => "3",
410  "under" => "3",
411  "variable" => "3",
412  "virtual" => "3",
413  "visible" => "3",
414  "wait" => "3",
415  "without" => "3",
416  "sp_activeroles" => "4",
417  "sp_addalias" => "4",
418  "sp_addauditrecord" => "4",
419  "sp_addaudittable" => "4",
420  "sp_addextendedproc" => "4",
421  "sp_addexternlogin" => "4",
422  "sp_addgroup" => "4",
423  "sp_addlanguage" => "4",
424  "sp_addlogin" => "4",
425  "sp_addmessage" => "4",
426  "sp_addobjectdef" => "4",
427  "sp_addremotelogin" => "4",
428  "sp_add_resource_limit" => "4",
429  "sp_addsegment" => "4",
430  "sp_addserver" => "4",
431  "sp_addthreshold" => "4",
432  "sp_add_time_range" => "4",
433  "sp_addtype" => "4",
434  "sp_addumpdevice" => "4",
435  "sp_adduser" => "4",
436  "sp_altermessage" => "4",
437  "sp_autoconnect" => "4",
438  "sp_bindcache" => "4",
439  "sp_bindefault" => "4",
440  "sp_bindmsg" => "4",
441  "sp_bindrule" => "4",
442  "sp_cacheconfig" => "4",
443  "sp_cachestrategy" => "4",
444  "sp_changedbowner" => "4",
445  "sp_changegroup" => "4",
446  "sp_checknames" => "4",
447  "sp_checkreswords" => "4",
448  "sp_checksource" => "4",
449  "sp_chgattribute" => "4",
450  "sp_clearstats" => "4",
451  "sp_commonkey" => "4",
452  "sp_countmetadata" => "4",
453  "sp_cursorinfo" => "4",
454  "sp_column_privileges" => "4",
455  "sp_columns" => "4",
456  "sp_configure" => "4",
457  "sp_databases" => "4",
458  "sp_datatype_info" => "4",
459  "sp_dbcc_alterws" => "4",
460  "sp_dbcc_configreport" => "4",
461  "sp_dbcc_createws" => "4",
462  "sp_dbcc_deletedb" => "4",
463  "sp_dbcc_deletehistory" => "4",
464  "sp_dbcc_differentialreport" => "4",
465  "sp_dbcc_evaluatedb" => "4",
466  "sp_dbcc_faultreport" => "4",
467  "sp_dbcc_fullreport" => "4",
468  "sp_dbcc_runcheck" => "4",
469  "sp_dbcc_statisticsreport" => "4",
470  "sp_dbcc_summaryreport" => "4",
471  "sp_dbcc_updateconfig" => "4",
472  "sp_dboption" => "4",
473  "sp_defaultloc" => "4",
474  "sp_depends" => "4",
475  "sp_diskdefault" => "4",
476  "sp_displayaudit" => "4",
477  "sp_displaylevel" => "4",
478  "sp_displaylogin" => "4",
479  "sp_displayroles" => "4",
480  "sp_dropalias" => "4",
481  "sp_dropdevice" => "4",
482  "sp_dropexeclass" => "4",
483  "sp_dropextendedproc" => "4",
484  "sp_dropexternlogin" => "4",
485  "sp_dropglockpromote" => "4",
486  "sp_dropgroup" => "4",
487  "sp_dropkey" => "4",
488  "sp_droplanguage" => "4",
489  "sp_droplogin" => "4",
490  "sp_dropmessage" => "4",
491  "sp_dropobjectdef" => "4",
492  "sp_dropremotelogin" => "4",
493  "sp_drop_resource_limit" => "4",
494  "sp_dropsegment" => "4",
495  "sp_dropserver" => "4",
496  "sp_dropthreshold" => "4",
497  "sp_drop_time_range" => "4",
498  "sp_droptype" => "4",
499  "sp_dropuser" => "4",
500  "sp_estspace" => "4",
501  "sp_extendsegment" => "4",
502  "sp_familylock" => "4",
503  "sp_forceonline_db" => "4",
504  "sp_forceonline_page" => "4",
505  "sp_foreignkey" => "4",
506  "sp_freedll" => "4",
507  "sp_getmessage" => "4",
508  "sp_grantlogin" => "4",
509  "sp_help" => "4",
510  "sp_helpartition" => "4",
511  "sp_helpcache" => "4",
512  "sp_helpconfig" => "4",
513  "sp_helpconstraint" => "4",
514  "sp_helpdb" => "4",
515  "sp_helpdevice" => "4",
516  "sp_helpextendedproc" => "4",
517  "sp_helpexternlogin" => "4",
518  "sp_helpgroup" => "4",
519  "sp_helpindex" => "4",
520  "sp_helpjoins" => "4",
521  "sp_helpkey" => "4",
522  "sp_helplanguage" => "4",
523  "sp_helplog" => "4",
524  "sp_helpobjectdef" => "4",
525  "sp_helpremotelogin" => "4",
526  "sp_help_resource_limit" => "4",
527  "sp_helprotect" => "4",
528  "sp_helpsegment" => "4",
529  "sp_helpserver" => "4",
530  "sp_helpsort" => "4",
531  "sp_helptext" => "4",
532  "sp_helpthreshold" => "4",
533  "sp_helpuser" => "4",
534  "sp_hidetext" => "4",
535  "sp_indsuspect" => "4",
536  "sp_listsuspect_db" => "4",
537  "sp_listsuspect_page" => "4",
538  "sp_lock" => "4",
539  "sp_locklogin" => "4",
540  "sp_logdevice" => "4",
541  "sp_loginconfig" => "4",
542  "sp_logininfo" => "4",
543  "sp_logiosize" => "4",
544  "sp_modifylogin" => "4",
545  "sp_modify_resource_limit" => "4",
546  "sp_modify_time_range" => "4",
547  "sp_modifythreshold" => "4",
548  "sp_monitor" => "4",
549  "sp_monitorconfig" => "4",
550  "sp_passthru" => "4",
551  "sp_password" => "4",
552  "sp_placeobject" => "4",
553  "sp_plan_dbccdb" => "4",
554  "sp_primarykey" => "4",
555  "sp_processmail" => "4",
556  "sp_procqmode" => "4",
557  "sp_procxmode" => "4",
558  "sp_recompile" => "4",
559  "sp_remoteoption" => "4",
560  "sp_remotesql" => "4",
561  "sp_rename" => "4",
562  "sp_renamedb" => "4",
563  "sp_reportstats" => "4",
564  "sp_revokelogin" => "4",
565  "sp_role" => "4",
566  "sp_serveroption" => "4",
567  "sp_setlangalias" => "4",
568  "sp_setpglockpromote" => "4",
569  "sp_setsuspect_granularity" => "4",
570  "sp_setsuspect_threshold" => "4",
571  "sp_spaceused" => "4",
572  "sp_syntax" => "4",
573  "sp_sysmon" => "4",
574  "sp_unbindcache" => "4",
575  "sp_unbindcache_all" => "4",
576  "sp_unbindefault" => "4",
577  "sp_unbindmsg" => "4",
578  "sp_unbindrule" => "4",
579  "sp_volchanged" => "4",
580  "sp_who" => "4",
581  "sp_fkeys" => "4",
582  "sp_server_info" => "4",
583  "sp_special_columns" => "4",
584  "sp_sproc_columns" => "4",
585  "sp_statistics" => "4",
586  "sp_stored_procedures" => "4",
587  "sp_table_privileges" => "4",
588  "sp_tables" => "4",
589  "xp_cmdshell" => "4",
590  "xp_deletemail" => "4",
591  "xp_enumgroups" => "4",
592  "xp_findnextmsg" => "4",
593  "xp_logevent" => "4",
594  "xp_readmail" => "4",
595  "xp_sendmail" => "4",
596  "xp_startmail" => "4",
597  "xp_stopmail" => "4",
598  "dbo" => "5",
599  "master" => "5",
600  "model" => "5",
601  "tempdb" => "5",
602  "sysalternates" => "5",
603  "sysattributes" => "5",
604  "syscharsets" => "5",
605  "syscolumns" => "5",
606  "syscomments" => "5",
607  "sysconfigures" => "5",
608  "sysconstraints" => "5",
609  "syscurconfigs" => "5",
610  "sysdatabases" => "5",
611  "sysdepends" => "5",
612  "sysdevices" => "5",
613  "sysengines" => "5",
614  "sysgams" => "5",
615  "sysindexes" => "5",
616  "syskeys" => "5",
617  "syslanguages" => "5",
618  "syslisteners" => "5",
619  "syslocks" => "5",
620  "sysloginroles" => "5",
621  "syslogins" => "5",
622  "syslogs" => "5",
623  "syslogshold" => "5",
624  "sysmessages" => "5",
625  "sysmonitors" => "5",
626  "sysobjects" => "5",
627  "syspartitions" => "5",
628  "sysprocedures" => "5",
629  "sysprocesses" => "5",
630  "sysprotects" => "5",
631  "sysreferences" => "5",
632  "sysremotelogins" => "5",
633  "sysresourcelimits" => "5",
634  "sysroles" => "5",
635  "syssecmechs" => "5",
636  "syssegments" => "5",
637  "sysservers" => "5",
638  "syssrvroles" => "5",
639  "sysstatistics" => "5",
640  "systabstats" => "5",
641  "systestlog" => "5",
642  "systhresholds" => "5",
643  "systimeranges" => "5",
644  "systypes" => "5",
645  "sysusages" => "5",
646  "sysusermessages" => "5",
647  "sysusers" => "5",
648  "sybsystemprocs" => "5",
649  "@@char" => "6",
650  "@@connections" => "6",
651  "@@cpu" => "6",
652  "@@error" => "6",
653  "@@global" => "6",
654  "@@identity" => "6",
655  "@@idle" => "6",
656  "@@io" => "6",
657  "@@isolation" => "6",
658  "@@langid" => "6",
659  "@@max" => "6",
660  "@@ncharsize" => "6",
661  "@@nestlevel" => "6",
662  "@@options" => "6",
663  "@@pack" => "6",
664  "@@packet" => "6",
665  "@@pagesize" => "6",
666  "@@parallel" => "6",
667  "@@rowcount" => "6",
668  "@@scan" => "6",
669  "@@servername" => "6",
670  "@@sqlstatus" => "6",
671  "@@textcolid" => "6",
672  "@@textdbid" => "6",
673  "@@textobjid" => "6",
674  "@@textp" => "6",
675  "@@textptr" => "6",
676  "@@textsize" => "6",
677  "@@textts" => "6",
678  "@@thresh" => "6",
679  "@@total" => "6",
680  "@@tranchained" => "6",
681  "@@version" => "6",
682  "abs" => "7",
683  "acos" => "7",
684  "ascii" => "7",
685  "asin" => "7",
686  "atan" => "7",
687  "atn2" => "7",
688  "ceiling" => "7",
689  "charindex" => "7",
690  "col_length" => "7",
691  "col_name" => "7",
692  "cos" => "7",
693  "cot" => "7",
694  "curunreservedpgs" => "7",
695  "data_pgs" => "7",
696  "datalength" => "7",
697  "dateadd" => "7",
698  "datediff" => "7",
699  "datename" => "7",
700  "datepart" => "7",
701  "db_id" => "7",
702  "db_name" => "7",
703  "degrees" => "7",
704  "difference" => "7",
705  "exp" => "7",
706  "floor" => "7",
707  "getdate" => "7",
708  "host_id" => "7",
709  "host_name" => "7",
710  "index_col" => "7",
711  "isnull" => "7",
712  "is_sec_service_on" => "7",
713  "lct_admin" => "7",
714  "log" => "7",
715  "log10" => "7",
716  "ltrim" => "7",
717  "mut_excl_roles" => "7",
718  "object_id" => "7",
719  "object_name" => "7",
720  "patindex" => "7",
721  "pi" => "7",
722  "power" => "7",
723  "proc_role" => "7",
724  "ptn_data_pgs" => "7",
725  "radians" => "7",
726  "rand" => "7",
727  "replicate" => "7",
728  "reserved_pgs" => "7",
729  "reverse" => "7",
730  "role_contain" => "7",
731  "role_id" => "7",
732  "role_name" => "7",
733  "round" => "7",
734  "rowcnt" => "7",
735  "rtrim" => "7",
736  "show_role" => "7",
737  "show_sec_services" => "7",
738  "sign" => "7",
739  "sin" => "7",
740  "soundex" => "7",
741  "sqrt" => "7",
742  "str" => "7",
743  "stuff" => "7",
744  "suser_id" => "7",
745  "suser_name" => "7",
746  "tan" => "7",
747  "textptr" => "7",
748  "textvalid" => "7",
749  "used_pgs" => "7",
750  "user_id" => "7",
751  "user_name" => "7",
752  "valid_name" => "7",
753  "valid_user" => "7");
754 
755  // Special extensions
756 
757  // Each category can specify a PHP function that returns an altered
758  // version of the keyword.
759 
760 
761 
762  $this->linkscripts = array(
763  "1" => "donothing",
764  "7" => "donothing",
765  "3" => "donothing",
766  "2" => "donothing",
767  "4" => "donothing",
768  "5" => "donothing",
769  "6" => "donothing");
770  }
771 
772 
773  public function donothing($keywordin)
774  {
775  return $keywordin;
776  }
777  }
Create styles array
The data for the language used.
donothing($keywordin)
Definition: HFile.php:21
$BEAUT_PATH