ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
awk.php
Go to the documentation of this file.
1 <?php
2 /************************************************
3  * awk.php
4  * -------
5  * Author: George Pollard (porges@porg.es)
6  * Copyright: (c) 2009 George Pollard
7  * Release Version: 1.0.9.0
8  * Date Started: 2009/01/28
9  *
10  * Awk language file for GeSHi.
11  *
12  * CHANGES
13  * -------
14  * 2009/01/28 (1.0.8.5)
15  * - First Release
16  *
17  * TODO (updated 2009/01/28)
18  * -------------------------
19  *
20  *************************************************************************************
21  *
22  * This file is part of GeSHi.
23  *
24  * GeSHi is free software; you can redistribute it and/or modify
25  * it under the terms of the GNU General Public License as published by
26  * the Free Software Foundation; either version 2 of the License, or
27  * (at your option) any later version.
28  *
29  * GeSHi is distributed in the hope that it will be useful,
30  * but WITHOUT ANY WARRANTY; without even the implied warranty of
31  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32  * GNU General Public License for more details.
33  *
34  * You should have received a copy of the GNU General Public License
35  * along with GeSHi; if not, write to the Free Software
36  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
37  *
38  ************************************************************************************/
39 
40 $language_data = array (
41  'LANG_NAME' => 'awk',
42  'COMMENT_SINGLE' => array(
43  1 => '#'
44  ),
45  'COMMENT_MULTI' => array(),
46  'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
47  'QUOTEMARKS' => array('"'),
48  'ESCAPE_CHAR' => '\\',
49  'KEYWORDS' => array (
50  1 => array(
51  'for', 'in', 'if', 'else', 'while', 'do', 'continue', 'break'
52  ),
53  2 => array(
54  'BEGIN', 'END'
55  ),
56  3 => array(
57  'ARGC', 'ARGV', 'CONVFMT', 'ENVIRON',
58  'FILENAME', 'FNR', 'FS', 'NF', 'NR', 'OFMT',
59  'OFS','ORS','RLENGTH','RS','RSTART','SUBSEP'
60  ),
61  4 => array(
62  'gsub','index','length','match','split',
63  'sprintf','sub','substr','tolower','toupper',
64  'atan2','cos','exp','int','log','rand',
65  'sin','sqrt','srand'
66  ),
67  5 => array(
68  'print','printf','getline','close','fflush','system'
69  ),
70  6 => array(
71  'function', 'return'
72  )
73  ),
74  'SYMBOLS' => array (
75  0 => array(
76  '(',')','[',']','{','}'
77  ),
78  1 => array(
79  '!','||','&&'
80  ),
81  2 => array(
82  '<','>','<=','>=','==','!='
83  ),
84  3 => array(
85  '+','-','*','/','%','^','++','--'
86  ),
87  4 => array(
88  '~','!~'
89  ),
90  5 => array(
91  '?',':'
92  )
93  ),
94  'CASE_SENSITIVE' => array(
95  GESHI_COMMENTS => false,
96  1 => false,
97  2 => false,
98  3 => false,
99  4 => false,
100  5 => false,
101  6 => false
102  ),
103  'STYLES' => array(
104  'KEYWORDS' => array(
105  1 => 'color: #000000; font-weight: bold;',
106  2 => 'color: #C20CB9; font-weight: bold;',
107  3 => 'color: #4107D5; font-weight: bold;',
108  4 => 'color: #07D589; font-weight: bold;',
109  5 => 'color: #0BD507; font-weight: bold;',
110  6 => 'color: #078CD5; font-weight: bold;'
111  ),
112  'COMMENTS' => array(
113  1 => 'color:#808080;'
114  ),
115  'ESCAPE_CHAR' => array(
116  0 => 'color: #000099; font-weight: bold;'
117  ),
118  'SYMBOLS' => array(
119  0 => 'color:black;',
120  1 => 'color:black;',
121  2 => 'color:black;',
122  3 => 'color:black;',
123  4 => 'color:#C4C364;',
124  5 => 'color:black;font-weight:bold;'),
125  'SCRIPT' => array(),
126  'REGEXPS' => array(
127  0 => 'color:#000088;'
128  ),
129  'STRINGS' => array(
130  0 => 'color: #ff0000;'
131  ),
132  'NUMBERS' => array(
133  0 => 'color: #000000;'
134  ),
135  'BRACKETS' => array(
136  0 => 'color: #7a0874; font-weight: bold;'
137  ),
138  'METHODS' => array()
139  ),
140  'URLS' => array(
141  1 => '',
142  2 => '',
143  3 => '',
144  4 => '',
145  5 => '',
146  6 => ''
147  ),
148  'OOLANG' => false,
149  'OBJECT_SPLITTERS' => array (),
150  'REGEXPS' => array(
151  0 => "\\$[a-zA-Z0-9_]+"
152  ),
153  'STRICT_MODE_APPLIES' => GESHI_NEVER,
154  'SCRIPT_DELIMITERS' => array (),
155  'HIGHLIGHT_STRICT_BLOCK' => array()
156 );
const GESHI_COMMENTS
Used in language files to mark comments.
Definition: geshi.php:149
const GESHI_NEVER
#+ private
Definition: geshi.php:123
const GESHI_CAPS_NO_CHANGE
Lowercase keywords found.
Definition: geshi.php:94
$language_data
Definition: awk.php:40