ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
nimrod.php
Go to the documentation of this file.
1 <?php
2 /*************************************************************************************
3  * nimrod.php
4  * ----------
5  * Author: Dennis Felsing (dennis@felsin9.de)
6  * Copyright: (c) 2014 Dennis Felsing
7  * Release Version: 1.0.9.0
8  * Date Started: 2014/07/15
9  *
10  * Nimrod language file for GeSHi.
11  *
12  * CHANGES
13  * -------
14  * 2014/07/15 (1.0.8.13)
15  * - First Release
16  *
17  * TODO (updated 2014/07/15)
18  * -------------------------
19  * - Int literals like 50'u8
20  *
21  *************************************************************************************
22  *
23  * This file is part of GeSHi.
24  *
25  * GeSHi is free software; you can redistribute it and/or modify
26  * it under the terms of the GNU General Public License as published by
27  * the Free Software Foundation; either version 2 of the License, or
28  * (at your option) any later version.
29  *
30  * GeSHi is distributed in the hope that it will be useful,
31  * but WITHOUT ANY WARRANTY; without even the implied warranty of
32  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33  * GNU General Public License for more details.
34  *
35  * You should have received a copy of the GNU General Public License
36  * along with GeSHi; if not, write to the Free Software
37  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
38  *
39  ************************************************************************************/
40 
41 $language_data = array (
42  'LANG_NAME' => 'Nimrod',
43  'COMMENT_SINGLE' => array(1 => '#'),
44  'COMMENT_MULTI' => array(),
45  'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
46  //Longest quotemarks ALWAYS first
47  'QUOTEMARKS' => array('"""', '"'),
48  'ESCAPE_CHAR' => '\\',
49  'NUMBERS' =>
54  'KEYWORDS' => array(
55 
56  /*
57  ** Set 1: reserved words
58  ** http://nimrod-lang.org/manual.html#identifiers-keywords
59  */
60  1 => array(
61  'addr', 'and', 'as', 'asm', 'atomic',
62  'bind', 'block', 'break',
63  'case', 'cast', 'const', 'continue', 'converter',
64  'discard', 'distinct', 'div', 'do',
65  'elif', 'else', 'end', 'enum', 'except', 'export',
66  'finally', 'for', 'from',
67  'generic',
68  'if', 'import', 'in', 'include', 'interface', 'is', 'isnot', 'iterator',
69  'lambda', 'let',
70  'macro', 'method', 'mixin', 'mod',
71  'nil', 'not', 'notin',
72  'object', 'of', 'or', 'out',
73  'proc',
74  'raise', 'ref', 'return',
75  'shl', 'shr', 'static',
76  'template', 'try', 'tuple', 'type',
77  'using',
78  'var',
79  'when', 'while', 'with', 'without',
80  'xor',
81  'yield'
82  ),
83 
84  2 => array(
85  'true', 'false'
86  ),
87 
88  3 => array(
89  /* system module */
90  'abs', 'accumulateResult', 'add', 'addAndFetch', 'addQuitProc',
91  'alloc', 'alloc0', 'allocCStringArray', 'allocShared',
92  'allocShared0', 'assert', 'astToStr', 'atomicDec', 'atomicInc',
93  'card', 'chr', 'clamp', 'close', 'cmp', 'compileOption',
94  'compiles', 'contains', 'copy', 'copyMem', 'countdown', 'countup',
95  'create', 'createShared', 'createSharedU', 'createU',
96  'cstringArrayToSeq', 'currentSourcePath', 'dealloc',
97  'deallocCStringArray', 'deallocShared', 'debugEcho', 'dec',
98  'defined', 'definedInScope', 'del', 'delete', 'doAssert', 'each',
99  'echo', 'endOfFile', 'equalMem', 'excl', 'failedAssertImpl',
100  'fieldPairs', 'fields', 'fileHandle', 'find', 'finished',
101  'flushFile', 'free', 'freeShared', 'GC_addCycleRoot', 'GC_disable',
102  'GC_disableMarkAndSweep', 'GC_enable', 'GC_enableMarkAndSweep',
103  'GC_fullCollect', 'GC_getStatistics', 'gcInvariant', 'GC_ref',
104  'GC_setStrategy', 'GC_unref', 'getCurrentException',
105  'getCurrentExceptionMsg', 'getFilePos', 'getFileSize',
106  'getFreeMem', 'getOccupiedMem', 'getRefcount', 'getStackTrace',
107  'getTotalMem', 'getTypeInfo', 'gorge', 'high', 'inc', 'incl',
108  'insert', 'instantiationInfo', 'internalNew', 'isNil', 'isOnStack',
109  'isStatic', 'items', 'len', 'likely', 'lines', 'locals', 'low',
110  'map', 'max', 'min', 'moveMem', 'new', 'newException', 'newSeq',
111  'newString', 'newStringOfCap', 'newWideCString', 'nimDestroyRange',
112  'onFailedAssert', 'onRaise', 'open', 'ord', 'pairs', 'pop', 'pred',
113  'quit', 'raiseAssert', 'rand', 'rawEnv', 'rawProc', 'readAll',
114  'readBuffer', 'readBytes', 'readChar', 'readChars', 'readFile',
115  'readLine', 'realloc', 'reallocShared', 'reopen', 'repr', 'reset',
116  'resize', 'safeAdd', 'setControlCHook', 'setFilePos', 'setLen',
117  'shallow', 'shallowCopy', 'sizeof', 'slurp', 'staticExec',
118  'staticRead', 'stdmsg', 'substr', 'succ', 'swap', 'toBiggestFloat',
119  'toBiggestInt', 'toFloat', 'toInt', 'toU16', 'toU32', 'toU8',
120  'unlikely', 'unsafeNew', 'write', 'writeBuffer', 'writeBytes',
121  'writeChars', 'writeFile', 'writeln', 'writeStackTrace', 'ze',
122  'ze64', 'zeroMem'
123  ),
124 
125  4 => array(
126  'auto', 'pointer', 'ptr', 'void', 'any', 'expr', 'stmt', 'typedesc',
127  'int', 'int8', 'int16', 'int32', 'int64', 'float', 'float32', 'float64',
128  'uint', 'uint8', 'uint16', 'uint32', 'uint64',
129  'bool', 'char', 'range', 'array', 'seq', 'set', 'string', 'TSlice',
130  'cstring', 'cint', 'clong', 'culong', 'cchar', 'cschar', 'cshort',
131  'csize', 'clonglong', 'cfloat', 'cdouble', 'clongdouble', 'cuchar',
132  'cushort', 'cuint', 'culonglong', 'cstringArray'
133  )
134  ),
135  'SYMBOLS' => array(
136  '*', '/', '%', '\\',
137  '+', '-', '~', '|',
138  '&',
139  '..',
140  '=', '<', '>', '!',
141  '@', '?'
142  ),
143  'CASE_SENSITIVE' => array(
144  GESHI_COMMENTS => false,
145  1 => false,
146  2 => false,
147  3 => false,
148  4 => false
149  ),
150  'STYLES' => array(
151  'KEYWORDS' => array(
152  1 => 'color: #ff7700;font-weight:bold;', // Reserved
153  2 => 'color: #008000;', // Built-ins + self
154  3 => 'color: #dc143c;', // Standard lib
155  4 => 'color: #0000cd;' // Special methods
156  ),
157  'COMMENTS' => array(
158  1 => 'color: #808080; font-style: italic;',
159  'MULTI' => 'color: #808080; font-style: italic;'
160  ),
161  'ESCAPE_CHAR' => array(
162  0 => 'color: #000099; font-weight: bold;'
163  ),
164  'BRACKETS' => array(
165  0 => 'color: black;'
166  ),
167  'STRINGS' => array(
168  0 => 'color: #483d8b;'
169  ),
170  'NUMBERS' => array(
171  0 => 'color: #ff4500;'
172  ),
173  'METHODS' => array(
174  1 => 'color: black;'
175  ),
176  'SYMBOLS' => array(
177  0 => 'color: #66cc66;'
178  ),
179  'REGEXPS' => array(
180  ),
181  'SCRIPT' => array(
182  )
183  ),
184  'URLS' => array(
185  1 => '',
186  2 => '',
187  3 => '',
188  4 => ''
189  ),
190  'OOLANG' => true,
191  'OBJECT_SPLITTERS' => array(
192  1 => '.'
193  ),
194  'REGEXPS' => array(
195  ),
196  'STRICT_MODE_APPLIES' => GESHI_NEVER,
197  'SCRIPT_DELIMITERS' => array(
198  ),
199  'HIGHLIGHT_STRICT_BLOCK' => array(
200  )
201 );
$language_data
Definition: nimrod.php:41
const GESHI_NUMBER_FLT_SCI_ZERO
Number format to highlight floating-point numbers with support for scientific notation (E) and requir...
Definition: geshi.php:195
const GESHI_NUMBER_FLT_NONSCI_F
Number format to highlight floating-point numbers without support for scientific notation.
Definition: geshi.php:191
const GESHI_COMMENTS
Used in language files to mark comments.
Definition: geshi.php:149
const GESHI_NUMBER_HEX_PREFIX
Number format to highlight hex numbers with a prefix 0x.
Definition: geshi.php:183
const GESHI_NUMBER_BIN_PREFIX_0B
Number format to highlight binary numbers with a prefix 0b (C)
Definition: geshi.php:173
const GESHI_NUMBER_OCT_PREFIX_0O
Number format to highlight octal numbers with a prefix 0o (logtalk)
Definition: geshi.php:177
const GESHI_NUMBER_FLT_NONSCI
Number format to highlight floating-point numbers without support for scientific notation.
Definition: geshi.php:189
const GESHI_NUMBER_FLT_SCI_SHORT
Number format to highlight floating-point numbers with support for scientific notation (E) and option...
Definition: geshi.php:193
const GESHI_NEVER
#+ private
Definition: geshi.php:123
const GESHI_NUMBER_INT_BASIC
Basic number format for integers.
Definition: geshi.php:165
const GESHI_CAPS_NO_CHANGE
Lowercase keywords found.
Definition: geshi.php:94