plugins/geshi/geshi/freebasic.php
changeset 2 9e3258dfae15
parent 0 441963e5b07a
child 3 f3e2bbbd2155
equal deleted inserted replaced
1:c715631f809a 2:9e3258dfae15
     1 <?php
     1 <?php
     2 /*************************************************************************************
     2 /*************************************************************************************
     3  * freebasic.php
     3  * freebasic.php
     4  * -------------
     4  * -------------
     5  * Author: Roberto Rossi 
     5  * Author: Roberto Rossi
     6  * Copyright: (c) 2005 Roberto Rossi (http://rsoftware.altervista.org)
     6  * Copyright: (c) 2005 Roberto Rossi (http://rsoftware.altervista.org)
     7  * Release Version: 1.0.7.20
     7  * Release Version: 1.0.8.2
     8  * Date Started: 2005/08/19
     8  * Date Started: 2005/08/19
     9  *
     9  *
    10  * FreeBasic (http://www.freebasic.net/) language file for GeSHi.
    10  * FreeBasic (http://www.freebasic.net/) language file for GeSHi.
    11  *
    11  *
    12  * CHANGES
    12  * CHANGES
    32  *   You should have received a copy of the GNU General Public License
    32  *   You should have received a copy of the GNU General Public License
    33  *   along with GeSHi; if not, write to the Free Software
    33  *   along with GeSHi; if not, write to the Free Software
    34  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    34  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    35  *
    35  *
    36  ************************************************************************************/
    36  ************************************************************************************/
    37  $language_data = array (
    37 
    38 	'LANG_NAME' => 'FreeBasic',
    38 $language_data = array (
    39 	'COMMENT_SINGLE' => array(1 => "'", 2 => '#'),
    39     'LANG_NAME' => 'FreeBasic',
    40 	'COMMENT_MULTI' => array(),
    40     'COMMENT_SINGLE' => array(1 => "'", 2 => '#'),
    41 	'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    41     'COMMENT_MULTI' => array(),
    42 	'QUOTEMARKS' => array('"'),
    42     'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    43 	'ESCAPE_CHAR' => '\\',
    43     'QUOTEMARKS' => array('"'),
    44 	'KEYWORDS' => array(
    44     'ESCAPE_CHAR' => '\\',
    45 		1 => array(
    45     'KEYWORDS' => array(
    46     "append", "as", "asc", "asin", "asm", "atan2", "atn", "beep", "bin", "binary", "bit",
    46         1 => array(
    47     "bitreset", "bitset", "bload", "bsave", "byref", "byte", "byval", "call",
    47             "append", "as", "asc", "asin", "asm", "atan2", "atn", "beep", "bin", "binary", "bit",
    48     "callocate", "case", "cbyte", "cdbl", "cdecl", "chain", "chdir", "chr", "cint",
    48             "bitreset", "bitset", "bload", "bsave", "byref", "byte", "byval", "call",
    49     "circle", "clear", "clng", "clngint", "close", "cls", "color", "command",
    49             "callocate", "case", "cbyte", "cdbl", "cdecl", "chain", "chdir", "chr", "cint",
    50     "common", "cons", "const", "continue", "cos", "cshort", "csign", "csng",
    50             "circle", "clear", "clng", "clngint", "close", "cls", "color", "command",
    51     "csrlin", "cubyte", "cuint", "culngint", "cunsg", "curdir", "cushort", "custom",
    51             "common", "cons", "const", "continue", "cos", "cshort", "csign", "csng",
    52     "cvd", "cvi", "cvl", "cvlongint", "cvs", "cvshort", "data", "date",
    52             "csrlin", "cubyte", "cuint", "culngint", "cunsg", "curdir", "cushort", "custom",
    53     "deallocate", "declare", "defbyte", "defdbl", "defined", "defint", "deflng",
    53             "cvd", "cvi", "cvl", "cvlongint", "cvs", "cvshort", "data", "date",
    54     "deflngint", "defshort", "defsng", "defstr", "defubyte", "defuint",
    54             "deallocate", "declare", "defbyte", "defdbl", "defined", "defint", "deflng",
    55     "defulngint", "defushort", "dim", "dir", "do", "double", "draw", "dylibload",
    55             "deflngint", "defshort", "defsng", "defstr", "defubyte", "defuint",
    56     "dylibsymbol", "else", "elseif", "end", "enum", "environ", 'environ$', "eof",
    56             "defulngint", "defushort", "dim", "dir", "do", "double", "draw", "dylibload",
    57     "eqv", "erase", "err", "error", "exec", "exepath", "exit", "exp", "export",
    57             "dylibsymbol", "else", "elseif", "end", "enum", "environ", 'environ$', "eof",
    58     "extern", "field", "fix", "flip", "for", "fre", "freefile", "function", "get",
    58             "eqv", "erase", "err", "error", "exec", "exepath", "exit", "exp", "export",
    59     "getjoystick", "getkey", "getmouse", "gosub", "goto", "hex", "hibyte", "hiword",
    59             "extern", "field", "fix", "flip", "for", "fre", "freefile", "function", "get",
    60     "if", "iif", "imagecreate", "imagedestroy", "imp", "inkey", "inp", "input",
    60             "getjoystick", "getkey", "getmouse", "gosub", "goto", "hex", "hibyte", "hiword",
    61     "instr", "int", "integer", "is", "kill", "lbound", "lcase", "left", "len",
    61             "if", "iif", "imagecreate", "imagedestroy", "imp", "inkey", "inp", "input",
    62     "let", "lib", "line", "lobyte", "loc", "local", "locate", "lock", "lof", "log",
    62             "instr", "int", "integer", "is", "kill", "lbound", "lcase", "left", "len",
    63     "long", "longint", "loop", "loword", "lset", "ltrim", "mid", "mkd", "mkdir",
    63             "let", "lib", "line", "lobyte", "loc", "local", "locate", "lock", "lof", "log",
    64     "mki", "mkl", "mklongint", "mks", "mkshort", "mod", "multikey", "mutexcreate",
    64             "long", "longint", "loop", "loword", "lset", "ltrim", "mid", "mkd", "mkdir",
    65     "mutexdestroy", "mutexlock", "mutexunlock", "name", "next", "not", "oct", "on",
    65             "mki", "mkl", "mklongint", "mks", "mkshort", "mod", "multikey", "mutexcreate",
    66     "once", "open", "option", "or", "out", "output", "overload", "paint", "palette",
    66             "mutexdestroy", "mutexlock", "mutexunlock", "name", "next", "not", "oct", "on",
    67     "pascal", "pcopy", "peek", "peeki", "peeks", "pipe", "pmap", "point", "pointer",
    67             "once", "open", "option", "or", "out", "output", "overload", "paint", "palette",
    68     "poke", "pokei", "pokes", "pos", "preserve", "preset", "print", "private",
    68             "pascal", "pcopy", "peek", "peeki", "peeks", "pipe", "pmap", "point", "pointer",
    69     "procptr", "pset", "ptr", "public", "put", "random", "randomize", "read",
    69             "poke", "pokei", "pokes", "pos", "preserve", "preset", "print", "private",
    70     "reallocate", "redim", "rem", "reset", "restore", "resume", "resume", "next",
    70             "procptr", "pset", "ptr", "public", "put", "random", "randomize", "read",
    71     "return", "rgb", "rgba", "right", "rmdir", "rnd", "rset", "rtrim", "run",
    71             "reallocate", "redim", "rem", "reset", "restore", "resume",
    72     "sadd", "screen", "screencopy", "screeninfo", "screenlock", "screenptr",
    72             "return", "rgb", "rgba", "right", "rmdir", "rnd", "rset", "rtrim", "run",
    73     "screenres", "screenset", "screensync", "screenunlock", "seek", "statement",
    73             "sadd", "screen", "screencopy", "screeninfo", "screenlock", "screenptr",
    74     "seek", "function", "selectcase", "setdate", "setenviron", "setmouse",
    74             "screenres", "screenset", "screensync", "screenunlock", "seek", "statement",
    75     "settime", "sgn", "shared", "shell", "shl", "short", "shr", "sin", "single",
    75             "selectcase", "setdate", "setenviron", "setmouse",
    76     "sizeof", "sleep", "space", "spc", "sqr", "static", "stdcall", "step", "stop",
    76             "settime", "sgn", "shared", "shell", "shl", "short", "shr", "sin", "single",
    77     "str", "string", "string", "strptr", "sub", "swap", "system", "tab", "tan",
    77             "sizeof", "sleep", "space", "spc", "sqr", "static", "stdcall", "step", "stop",
    78     "then", "threadcreate", "threadwait", "time", "time", "timer", "to", "trans",
    78             "str", "string", "strptr", "sub", "swap", "system", "tab", "tan",
    79     "trim", "type", "ubound", "ubyte", "ucase", "uinteger", "ulongint", "union",
    79             "then", "threadcreate", "threadwait", "time", "timer", "to", "trans",
    80     "unlock", "unsigned", "until", "ushort", "using", "va_arg", "va_first",
    80             "trim", "type", "ubound", "ubyte", "ucase", "uinteger", "ulongint", "union",
    81     "va_next", "val", "val64", "valint", "varptr", "view", "viewprint", "wait",
    81             "unlock", "unsigned", "until", "ushort", "using", "va_arg", "va_first",
    82     "wend", "while", "width", "window", "windowtitle", "with", "write", "xor",
    82             "va_next", "val", "val64", "valint", "varptr", "view", "viewprint", "wait",
    83     "zstring", "explicit", "escape", "true", "false"
    83             "wend", "while", "width", "window", "windowtitle", "with", "write", "xor",
    84       )
    84             "zstring", "explicit", "escape", "true", "false"
    85 		),
    85             )
    86 	'SYMBOLS' => array(
    86         ),
    87 		'(', ')'
    87     'SYMBOLS' => array(
    88 		),
    88         '(', ')'
    89 	'CASE_SENSITIVE' => array(
    89         ),
    90 		GESHI_COMMENTS => false,
    90     'CASE_SENSITIVE' => array(
    91 		1 => false
    91         GESHI_COMMENTS => false,
    92 		),
    92         1 => false
    93 	'STYLES' => array(
    93         ),
    94 		'KEYWORDS' => array(
    94     'STYLES' => array(
    95 			1 => 'color: #b1b100;'
    95         'KEYWORDS' => array(
    96 			),
    96             1 => 'color: #b1b100;'
    97 		'COMMENTS' => array(
    97             ),
    98 			1 => 'color: #808080;',
    98         'COMMENTS' => array(
    99       2 => 'color: #339933;'
    99             1 => 'color: #808080;',
   100 			),
   100             2 => 'color: #339933;'
   101 		'BRACKETS' => array(
   101             ),
   102 			0 => 'color: #66cc66;'
   102         'BRACKETS' => array(
   103 			),
   103             0 => 'color: #66cc66;'
   104 		'STRINGS' => array(
   104             ),
   105 			0 => 'color: #ff0000;'
   105         'STRINGS' => array(
   106 			),
   106             0 => 'color: #ff0000;'
   107 		'NUMBERS' => array(
   107             ),
   108 			0 => 'color: #cc66cc;'
   108         'NUMBERS' => array(
   109 			),
   109             0 => 'color: #cc66cc;'
   110 		'METHODS' => array(
   110             ),
   111 			0 => 'color: #66cc66;'
   111         'METHODS' => array(
   112 			),
   112             0 => 'color: #66cc66;'
   113 		'SYMBOLS' => array(
   113             ),
   114 			0 => 'color: #66cc66;'
   114         'SYMBOLS' => array(
   115 			),
   115             0 => 'color: #66cc66;'
   116 		'ESCAPE_CHAR' => array(
   116             ),
   117 			0 => 'color: #000099;'
   117         'ESCAPE_CHAR' => array(
   118 			),
   118             0 => 'color: #000099;'
   119 		'SCRIPT' => array(
   119             ),
   120 			),
   120         'SCRIPT' => array(
   121 		'REGEXPS' => array(
   121             ),
   122 			)
   122         'REGEXPS' => array(
   123 		),
   123             )
   124 	'OOLANG' => true,
   124         ),
   125 	'OBJECT_SPLITTERS' => array(
   125     'URLS' => array(
   126 		1 => '.'
   126         1 => ''
   127 		),
   127         ),
   128 	'REGEXPS' => array(
   128     'OOLANG' => true,
   129 		),
   129     'OBJECT_SPLITTERS' => array(
   130 	'STRICT_MODE_APPLIES' => GESHI_NEVER,
   130         1 => '.'
   131 	'SCRIPT_DELIMITERS' => array(
   131         ),
   132 		),
   132     'REGEXPS' => array(
   133 	'HIGHLIGHT_STRICT_BLOCK' => array(
   133         ),
   134 		)
   134     'STRICT_MODE_APPLIES' => GESHI_NEVER,
       
   135     'SCRIPT_DELIMITERS' => array(
       
   136         ),
       
   137     'HIGHLIGHT_STRICT_BLOCK' => array(
       
   138         )
   135 );
   139 );
   136 
   140 
   137 ?>
   141 ?>