A tumblelog CMS built on AJAX, PHP and MySQL.

gml.php 35KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  1. <?php
  2. /*************************************************************************************
  3. * gml.php
  4. * --------
  5. * Author: José Jorge Enríquez (jenriquez@users.sourceforge.net)
  6. * Copyright: (c) 2005 José Jorge Enríquez Rodríguez (http://www.zonamakers.com)
  7. * Release Version: 1.0.7.21
  8. * Date Started: 2005/06/21
  9. *
  10. * GML language file for GeSHi.
  11. *
  12. * GML (Game Maker Language) is a script language that is built-in into Game Maker,
  13. * a game creation program, more info about Game Maker can be found at
  14. * http://www.gamemaker.nl/
  15. * All GML keywords were extracted from the Game Maker HTML Help file using a PHP
  16. * script (one section at a time). I love PHP for saving me that bunch of work :P!.
  17. * I think all GML functions have been indexed here, but I'm not sure about it, so
  18. * please let me know of any issue you may find.
  19. *
  20. * CHANGES
  21. * -------
  22. * 2005/11/11
  23. * - Changed 'CASE_KEYWORDS' fom 'GESHI_CAPS_LOWER' to 'GESHI_CAPS_NO_CHANGE',
  24. * so that MCI_command appears correctly (the only GML function using capitals).
  25. * - Changed 'CASE_SENSITIVE' options, 'GESHI_COMMENTS' from true to false and all
  26. * of the others from false to true.
  27. * - Deleted repeated entries.
  28. * - div and mod are language keywords, moved (from symbols) to the appropiate section (1).
  29. * - Moved self, other, all, noone and global identifiers to language keywords section 1.
  30. * - Edited this file lines to a maximum width of 100 characters (as stated in
  31. * the GeSHi docs). Well, not strictly to 100 but around it.
  32. * - Corrected some minor issues (the vk_f1...vk_f12 keys and similar).
  33. * - Deleted the KEYWORDS=>5 and KEYWORDS=>6 sections (actually, they were empty).
  34. * I was planning of using those for the GML functions available only in the
  35. * registered version of the program, but not anymore.
  36. *
  37. * 2005/06/26 (1.0.3)
  38. * - First Release.
  39. *
  40. * TODO (updated 2005/11/11)
  41. * -------------------------
  42. * - Test it for a while and make the appropiate corrections.
  43. *
  44. *************************************************************************************
  45. *
  46. * This file is part of GeSHi.
  47. *
  48. * GeSHi is free software; you can redistribute it and/or modify
  49. * it under the terms of the GNU General Public License as published by
  50. * the Free Software Foundation; either version 2 of the License, or
  51. * (at your option) any later version.
  52. *
  53. * GeSHi is distributed in the hope that it will be useful,
  54. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  55. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  56. * GNU General Public License for more details.
  57. *
  58. * You should have received a copy of the GNU General Public License
  59. * along with GeSHi; if not, write to the Free Software
  60. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  61. *
  62. ************************************************************************************/
  63. $language_data = array(
  64. 'LANG_NAME' => 'GML',
  65. 'COMMENT_SINGLE' => array(1 => '//'),
  66. 'COMMENT_MULTI' => array('/*' => '*/'),
  67. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  68. 'QUOTEMARKS' => array("'"),
  69. 'ESCAPE_CHAR' => '\\',
  70. 'KEYWORDS' => array(
  71. // language keywords
  72. 1 => array(
  73. 'break', 'continue', 'do', 'until', 'if', 'else',
  74. 'exit', 'for', 'for', 'repeat', 'return', 'switch',
  75. 'case', 'default', 'var', 'while', 'with', 'div', 'mod',
  76. // GML Language overview
  77. 'self', 'other', 'all', 'noone', 'global',
  78. ),
  79. // modifiers and built-in variables
  80. 2 => array(
  81. // Game play
  82. 'x','y','xprevious','yprevious','xstart','ystart','hspeed','vspeed','direction','speed',
  83. 'friction','gravity','gravity_direction',
  84. 'path_index','path_position','path_positionprevious','path_speed','path_orientation',
  85. 'path_scale','path_endaction',
  86. 'object_index','id','mask_index','solid','persistent','instance_count','instance_id',
  87. 'room_speed','fps','current_time','current_year','current_month','current_day','current_weekday',
  88. 'current_hour','current_minute','current_second','alarm','timeline_index','timeline_position',
  89. 'timeline_speed',
  90. 'room','room_first','room_last','room_width','room_height','room_caption','room_persistent',
  91. 'score','lives','health','show_score','show_lives','show_health','caption_score','caption_lives',
  92. 'caption_health',
  93. 'event_type','event_number','event_object','event_action',
  94. 'error_occurred','error_last',
  95. // User interaction
  96. 'keyboard_lastkey','keyboard_key','keyboard_lastchar','keyboard_string',
  97. 'mouse_x','mouse_y','mouse_button','mouse_lastbutton',
  98. // Game Graphics
  99. 'visible','sprite_index','sprite_width','sprite_height','sprite_xoffset','sprite_yoffset',
  100. 'image_number','image_index','image_speed','depth','image_xscale','image_yscale','image_angle',
  101. 'image_alpha','image_blend','bbox_left','bbox_right','bbox_top','bbox_bottom',
  102. 'background_color','background_showcolor','background_visible','background_foreground',
  103. 'background_index','background_x','background_y','background_width','background_height',
  104. 'background_htiled','background_vtiled','background_xscale','background_yscale',
  105. 'background_hspeed','background_vspeed','background_blend','background_alpha',
  106. 'background','left, top, width, height','x,y','depth','visible','xscale, yscale','blend','alpha',
  107. 'view_enabled','view_current','view_visible','view_yview','view_wview','view_hview','view_xport',
  108. 'view_yport','view_wport','view_hport','view_angle','view_hborder','view_vborder','view_hspeed',
  109. 'view_vspeed','view_object',
  110. 'transition_kind',
  111. // Files, registry and executing programs
  112. 'game_id','working_directory','temp_directory',
  113. 'secure_mode',
  114. // Creating particles
  115. 'xmin', 'xmax', 'ymin', 'ymax','shape','distribution','particle type','number',
  116. 'x', 'y', 'force','dist','kind','additive', 'friction', 'parttype1', 'parttype2'
  117. ),
  118. // functions
  119. 3 => array(
  120. // Computing things
  121. 'random','choose','abs','sign','round','floor','ceil','frac','sqrt','sqr','power','exp','ln',
  122. 'log2','log10','logn','sin','cos','tan','arcsin','arccos','arctan','arctan2','degtorad',
  123. 'radtodeg','min','max','mean','median','point_distance','point_direction','lengthdir_x',
  124. 'lengthdir_y','is_real','is_string',
  125. 'chr','ord','real','string','string_format','string_length','string_pos','string_copy',
  126. 'string_char_at','string_delete','string_insert','string_replace','string_replace_all',
  127. 'string_count','string_lower','string_upper','string_repeat','string_letters','string_digits',
  128. 'string_lettersdigits','clipboard_has_text','clipboard_get_text','clipboard_set_text',
  129. 'date_current_datetime','date_current_date','date_current_time','date_create_datetime',
  130. 'date_create_date','date_create_time','date_valid_datetime','date_valid_date','date_valid_time',
  131. 'date_inc_year','date_inc_month','date_inc_week','date_inc_day','date_inc_hour',
  132. 'date_inc_minute','date_inc_second','date_get_year','date_get_month','date_get_week',
  133. 'date_get_day','date_get_hour', 'date_get_minute','date_get_second','date_get_weekday',
  134. 'date_get_day_of_year','date_get_hour_of_year','date_get_minute_of_year',
  135. 'date_get_second_of_year','date_year_span','date_month_span','date_week_span','date_day_span',
  136. 'date_hour_span','date_minute_span','date_second_span','date_compare_datetime',
  137. 'date_compare_date','date_compare_time','date_date_of','date_time_of','date_datetime_string',
  138. 'date_date_string','date_time_string','date_days_in_month','date_days_in_year','date_leap_year',
  139. 'date_is_today',
  140. // Game play
  141. 'motion_set','motion_add','place_free','place_empty','place_meeting','place_snapped',
  142. 'move_random','move_snap','move_wrap','move_towards_point','move_bounce_solid','move_bounce_all',
  143. 'move_contact_solid','move_contact_all','move_outside_solid','move_outside_all',
  144. 'distance_to_point','distance_to_object','position_empty','position_meeting',
  145. 'path_start','path_end',
  146. 'mp_linear_step','mp_linear_step_object','mp_potential_step','mp_potential_step_object',
  147. 'mp_potential_settings','mp_linear_path','mp_linear_path_object', 'mp_potential_path',
  148. 'mp_potential_path_object','mp_grid_create','mp_grid_destroy','mp_grid_clear_all',
  149. 'mp_grid_clear_cell','mp_grid_clear_rectangle','mp_grid_add_cell','mp_grid_add_rectangle',
  150. 'mp_grid_add_instances','mp_grid_path','mp_grid_draw',
  151. 'collision_point','collision_rectangle','collision_circle','collision_ellipse','collision_line',
  152. 'instance_find','instance_exists','instance_number','instance_position','instance_nearest',
  153. 'instance_furthest','instance_place','instance_create','instance_copy','instance_destroy',
  154. 'instance_change','position_destroy','position_change',
  155. 'instance_deactivate_all','instance_deactivate_object','instance_deactivate_region',
  156. 'instance_activate_all','instance_activate_object','instance_activate_region',
  157. 'sleep',
  158. 'room_goto','room_goto_previous','room_goto_next','room_restart','room_previous','room_next',
  159. 'game_end','game_restart','game_save','game_load',
  160. 'event_perform', 'event_perform_object','event_user','event_inherited',
  161. 'show_debug_message','variable_global_exists','variable_local_exists','variable_global_get',
  162. 'variable_global_array_get','variable_global_array2_get','variable_local_get',
  163. 'variable_local_array_get','variable_local_array2_get','variable_global_set',
  164. 'variable_global_array_set','variable_global_array2_set','variable_local_set',
  165. 'variable_local_array_set','variable_local_array2_set','set_program_priority',
  166. // User interaction
  167. 'keyboard_set_map','keyboard_get_map','keyboard_unset_map','keyboard_check',
  168. 'keyboard_check_pressed','keyboard_check_released','keyboard_check_direct',
  169. 'keyboard_get_numlock','keyboard_set_numlock','keyboard_key_press','keyboard_key_release',
  170. 'keyboard_clear','io_clear','io_handle','keyboard_wait',
  171. 'mouse_check_button','mouse_check_button_pressed','mouse_check_button_released','mouse_clear',
  172. 'io_clear','io_handle','mouse_wait',
  173. 'joystick_exists','joystick_name','joystick_axes','joystick_buttons','joystick_has_pov',
  174. 'joystick_direction','joystick_check_button','joystick_xpos','joystick_ypos','joystick_zpos',
  175. 'joystick_rpos','joystick_upos','joystick_vpos','joystick_pov',
  176. // Game Graphics
  177. 'draw_sprite','draw_sprite_stretched','draw_sprite_tiled','draw_sprite_part','draw_background',
  178. 'draw_background_stretched','draw_background_tiled','draw_background_part','draw_sprite_ext',
  179. 'draw_sprite_stretched_ext','draw_sprite_tiled_ext','draw_sprite_part_ext','draw_sprite_general',
  180. 'draw_background_ext','draw_background_stretched_ext','draw_background_tiled_ext',
  181. 'draw_background_part_ext','draw_background_general',
  182. 'draw_clear','draw_clear_alpha','draw_point','draw_line','draw_rectangle','draw_roundrect',
  183. 'draw_triangle','draw_circle','draw_ellipse','draw_arrow','draw_button','draw_path',
  184. 'draw_healthbar','draw_set_color','draw_set_alpha','draw_get_color','draw_get_alpha',
  185. 'make_color_rgb','make_color_hsv','color_get_red','color_get_green','color_get_blue',
  186. 'color_get_hue','color_get_saturation','color_get_value','merge_color','draw_getpixel',
  187. 'screen_save','screen_save_part',
  188. 'draw_set_font','draw_set_halign','draw_set_valign','draw_text','draw_text_ext','string_width',
  189. 'string_height','string_width_ext','string_height_ext','draw_text_transformed',
  190. 'draw_text_ext_transformed','draw_text_color','draw_text_ext_color',
  191. 'draw_text_transformed_color','draw_text_ext_transformed_color',
  192. 'draw_point_color','draw_line_color','draw_rectangle_color','draw_roundrect_color',
  193. 'draw_triangle_color','draw_circle_color','draw_ellipse_color','draw_primitive_begin',
  194. 'draw_vertex','draw_vertex_color','draw_primitive_end','sprite_get_texture',
  195. 'background_get_texture','texture_preload','texture_set_priority',
  196. 'texture_get_width','texture_get_height','draw_primitive_begin_texture','draw_vertex_texture',
  197. 'draw_vertex_texture_color','draw_primitive_end','texture_set_interpolation',
  198. 'texture_set_blending','texture_set_repeat','draw_set_blend_mode','draw_set_blend_mode_ext',
  199. 'surface_create','surface_free','surface_exists','surface_get_width','surface_get_height',
  200. 'surface_get_texture','surface_set_target','surface_reset_target','surface_getpixel',
  201. 'surface_save','surface_save_part','draw_surface','draw_surface_stretched','draw_surface_tiled',
  202. 'draw_surface_part','draw_surface_ext','draw_surface_stretched_ext','draw_surface_tiled_ext',
  203. 'draw_surface_part_ext','draw_surface_general','surface_copy','surface_copy_part',
  204. 'tile_add','tile_delete','tile_exists','tile_get_x','tile_get_y','tile_get_left','tile_get_top',
  205. 'tile_get_width','tile_get_height','tile_get_depth','tile_get_visible','tile_get_xscale',
  206. 'tile_get_yscale','tile_get_background','tile_get_blend','tile_get_alpha','tile_set_position',
  207. 'tile_set_region','tile_set_background','tile_set_visible','tile_set_depth','tile_set_scale',
  208. 'tile_set_blend','tile_set_alpha','tile_layer_hide','tile_layer_show','tile_layer_delete',
  209. 'tile_layer_shift','tile_layer_find','tile_layer_delete_at','tile_layer_depth',
  210. 'display_get_width','display_get_height','display_get_colordepth','display_get_frequency',
  211. 'display_set_size','display_set_colordepth','display_set_frequency','display_set_all',
  212. 'display_test_all','display_reset','display_mouse_get_x','display_mouse_get_y','display_mouse_set',
  213. 'window_set_visible','window_get_visible','window_set_fullscreen','window_get_fullscreen',
  214. 'window_set_showborder','window_get_showborder','window_set_showicons','window_get_showicons',
  215. 'window_set_stayontop','window_get_stayontop','window_set_sizeable','window_get_sizeable',
  216. 'window_set_caption','window_get_caption','window_set_cursor', 'window_get_cursor',
  217. 'window_set_color','window_get_color','window_set_region_scale','window_get_region_scale',
  218. 'window_set_position','window_set_size','window_set_rectangle','window_center','window_default',
  219. 'window_get_x','window_get_y','window_get_width','window_get_height','window_mouse_get_x',
  220. 'window_mouse_get_y','window_mouse_set',
  221. 'window_set_region_size','window_get_region_width','window_get_region_height',
  222. 'window_view_mouse_get_x','window_view_mouse_get_y','window_view_mouse_set',
  223. 'window_views_mouse_get_x','window_views_mouse_get_y','window_views_mouse_set',
  224. 'screen_redraw','screen_refresh','set_automatic_draw','set_synchronization','screen_wait_vsync',
  225. // Sound and music)
  226. 'sound_play','sound_loop','sound_stop','sound_stop_all','sound_isplaying','sound_volume',
  227. 'sound_global_volume','sound_fade','sound_pan','sound_background_tempo','sound_set_search_directory',
  228. 'sound_effect_set','sound_effect_chorus','sound_effect_echo', 'sound_effect_flanger',
  229. 'sound_effect_gargle','sound_effect_reverb','sound_effect_compressor','sound_effect_equalizer',
  230. 'sound_3d_set_sound_position','sound_3d_set_sound_velocity','sound_3d_set_sound_distance',
  231. 'sound_3d_set_sound_cone',
  232. 'cd_init','cd_present','cd_number','cd_playing','cd_paused','cd_track','cd_length',
  233. 'cd_track_length','cd_position','cd_track_position','cd_play','cd_stop','cd_pause','cd_resume',
  234. 'cd_set_position','cd_set_track_position','cd_open_door','cd_close_door','MCI_command',
  235. // Splash screens, highscores, and other pop-ups
  236. 'show_text','show_image','show_video','show_info','load_info',
  237. 'show_message','show_message_ext','show_question','get_integer','get_string',
  238. 'message_background','message_alpha','message_button','message_text_font','message_button_font',
  239. 'message_input_font','message_mouse_color','message_input_color','message_caption',
  240. 'message_position','message_size','show_menu','show_menu_pos','get_color','get_open_filename',
  241. 'get_save_filename','get_directory','get_directory_alt','show_error',
  242. 'highscore_show','highscore_set_background','highscore_set_border','highscore_set_font',
  243. 'highscore_set_colors','highscore_set_strings','highscore_show_ext','highscore_clear',
  244. 'highscore_add','highscore_add_current','highscore_value','highscore_name','draw_highscore',
  245. // Resources
  246. 'sprite_exists','sprite_get_name','sprite_get_number','sprite_get_width','sprite_get_height',
  247. 'sprite_get_transparent','sprite_get_smooth','sprite_get_preload','sprite_get_xoffset',
  248. 'sprite_get_yoffset','sprite_get_bbox_left','sprite_get_bbox_right','sprite_get_bbox_top',
  249. 'sprite_get_bbox_bottom','sprite_get_bbox_mode','sprite_get_precise',
  250. 'sound_exists','sound_get_name','sound_get_kind','sound_get_preload','sound_discard',
  251. 'sound_restore',
  252. 'background_exists','background_get_name','background_get_width','background_get_height',
  253. 'background_get_transparent','background_get_smooth','background_get_preload',
  254. 'font_exists','font_get_name','font_get_fontname','font_get_bold','font_get_italic',
  255. 'font_get_first','font_get_last',
  256. 'path_exists','path_get_name','path_get_length','path_get_kind','path_get_closed',
  257. 'path_get_precision','path_get_number','path_get_point_x','path_get_point_y',
  258. 'path_get_point_speed','path_get_x','path_get_y','path_get_speed',
  259. 'script_exists','script_get_name','script_get_text',
  260. 'timeline_exists','timeline_get_name',
  261. 'object_exists','object_get_name','object_get_sprite','object_get_solid','object_get_visible',
  262. 'object_get_depth','object_get_persistent','object_get_mask','object_get_parent',
  263. 'object_is_ancestor',
  264. 'room_exists','room_get_name',
  265. // Changing resources
  266. 'sprite_set_offset','sprite_set_bbox_mode','sprite_set_bbox','sprite_set_precise',
  267. 'sprite_duplicate','sprite_assign','sprite_merge','sprite_add','sprite_replace',
  268. 'sprite_create_from_screen','sprite_add_from_screen','sprite_create_from_surface',
  269. 'sprite_add_from_surface','sprite_delete','sprite_set_alpha_from_sprite',
  270. 'sound_add','sound_replace','sound_delete',
  271. 'background_duplicate','background_assign','background_add','background_replace',
  272. 'background_create_color','background_create_gradient','background_create_from_screen',
  273. 'background_create_from_surface','background_delete','background_set_alpha_from_background',
  274. 'font_add','font_add_sprite','font_replace_sprite','font_delete',
  275. 'path_set_kind','path_set_closed','path_set_precision','path_add','path_delete','path_duplicate',
  276. 'path_assign','path_append','path_add_point','path_insert_point','path_change_point',
  277. 'path_delete_point','path_clear_points','path_reverse','path_mirror','path_flip','path_rotate',
  278. 'path_scale','path_shift',
  279. 'execute_string','execute_file','script_execute',
  280. 'timeline_add','timeline_delete','timeline_moment_add','timeline_moment_clear',
  281. 'object_set_sprite','object_set_solid','object_set_visible','object_set_depth',
  282. 'object_set_persistent','object_set_mask','object_set_parent','object_add','object_delete',
  283. 'object_event_add','object_event_clear',
  284. 'room_set_width','room_set_height','room_set_caption','room_set_persistent','room_set_code',
  285. 'room_set_background_color','room_set_background','room_set_view','room_set_view_enabled',
  286. 'room_add','room_duplicate','room_assign','room_instance_add','room_instance_clear',
  287. 'room_tile_add','room_tile_add_ext','room_tile_clear',
  288. // Files, registry and executing programs
  289. 'file_text_open_read','file_text_open_write','file_text_open_append','file_text_close',
  290. 'file_text_write_string','file_text_write_real','file_text_writeln','file_text_read_string',
  291. 'file_text_read_real','file_text_readln','file_text_eof','file_exists','file_delete',
  292. 'file_rename','file_copy','directory_exists','directory_create','file_find_first',
  293. 'file_find_next','file_find_close','file_attributes', 'filename_name','filename_path',
  294. 'filename_dir','filename_drive','filename_ext','filename_change_ext','file_bin_open',
  295. 'file_bin_rewrite','file_bin_close','file_bin_size','file_bin_position','file_bin_seek',
  296. 'file_bin_write_byte','file_bin_read_byte','parameter_count','parameter_string',
  297. 'environment_get_variable',
  298. 'registry_write_string','registry_write_real','registry_read_string','registry_read_real',
  299. 'registry_exists','registry_write_string_ext','registry_write_real_ext',
  300. 'registry_read_string_ext','registry_read_real_ext','registry_exists_ext','registry_set_root',
  301. 'ini_open','ini_close','ini_read_string','ini_read_real','ini_write_string','ini_write_real',
  302. 'ini_key_exists','ini_section_exists','ini_key_delete','ini_section_delete',
  303. 'execute_program','execute_shell',
  304. // Data structures
  305. 'ds_stack_create','ds_stack_destroy','ds_stack_clear','ds_stack_size','ds_stack_empty',
  306. 'ds_stack_push','ds_stack_pop','ds_stack_top',
  307. 'ds_queue_create','ds_queue_destroy','ds_queue_clear','ds_queue_size','ds_queue_empty',
  308. 'ds_queue_enqueue','ds_queue_dequeue','ds_queue_head','ds_queue_tail',
  309. 'ds_list_create','ds_list_destroy','ds_list_clear','ds_list_size','ds_list_empty','ds_list_add',
  310. 'ds_list_insert','ds_list_replace','ds_list_delete','ds_list_find_index','ds_list_find_value',
  311. 'ds_list_sort',
  312. 'ds_map_create','ds_map_destroy','ds_map_clear','ds_map_size','ds_map_empty','ds_map_add',
  313. 'ds_map_replace','ds_map_delete','ds_map_exists','ds_map_find_value','ds_map_find_previous',
  314. 'ds_map_find_next','ds_map_find_first','ds_map_find_last',
  315. 'ds_priority_create','ds_priority_destroy','ds_priority_clear','ds_priority_size',
  316. 'ds_priority_empty','ds_priority_add','ds_priority_change_priority','ds_priority_find_priority',
  317. 'ds_priority_delete_value','ds_priority_delete_min','ds_priority_find_min',
  318. 'ds_priority_delete_max','ds_priority_find_max',
  319. 'ds_grid_create','ds_grid_destroy','ds_grid_resize','ds_grid_width','ds_grid_height',
  320. 'ds_grid_clear','ds_grid_set','ds_grid_add','ds_grid_multiply','ds_grid_set_region',
  321. 'ds_grid_add_region','ds_grid_multiply_region','ds_grid_set_disk','ds_grid_add_disk',
  322. 'ds_grid_multiply_disk','ds_grid_get','ds_grid_get_sum','ds_grid_get_max','ds_grid_get_min',
  323. 'ds_grid_get_mean','ds_grid_get_disk_sum','ds_grid_get_disk_min','ds_grid_get_disk_max',
  324. 'ds_grid_get_disk_mean','ds_grid_value_exists','ds_grid_value_x','ds_grid_value_y',
  325. 'ds_grid_value_disk_exists','ds_grid_value_disk_x','ds_grid_value_disk_y',
  326. // Creating particles
  327. 'effect_create_below','effect_create_above','effect_clear',
  328. 'part_type_create','part_type_destroy','part_type_exists','part_type_clear','part_type_shape',
  329. 'part_type_sprite','part_type_size','part_type_scale',
  330. 'part_type_orientation','part_type_color1','part_type_color2','part_type_color3',
  331. 'part_type_color_mix','part_type_color_rgb','part_type_color_hsv',
  332. 'part_type_alpha1','part_type_alpha2','part_type_alpha3','part_type_blend','part_type_life',
  333. 'part_type_step','part_type_death','part_type_speed','part_type_direction','part_type_gravity',
  334. 'part_system_create','part_system_destroy','part_system_exists','part_system_clear',
  335. 'part_system_draw_order','part_system_depth','part_system_position',
  336. 'part_system_automatic_update','part_system_automatic_draw','part_system_update',
  337. 'part_system_drawit','part_particles_create','part_particles_create_color',
  338. 'part_particles_clear','part_particles_count',
  339. 'part_emitter_create','part_emitter_destroy','part_emitter_destroy_all','part_emitter_exists',
  340. 'part_emitter_clear','part_emitter_region','part_emitter_burst','part_emitter_stream',
  341. 'part_attractor_create','part_attractor_destroy','part_attractor_destroy_all',
  342. 'part_attractor_exists','part_attractor_clear','part_attractor_position','part_attractor_force',
  343. 'part_destroyer_create','part_destroyer_destroy','part_destroyer_destroy_all',
  344. 'part_destroyer_exists','part_destroyer_clear','part_destroyer_region',
  345. 'part_deflector_create','part_deflector_destroy','part_deflector_destroy_all',
  346. 'part_deflector_exists','part_deflector_clear','part_deflector_region','part_deflector_kind',
  347. 'part_deflector_friction',
  348. 'part_changer_create','part_changer_destroy','part_changer_destroy_all','part_changer_exists',
  349. 'part_changer_clear','part_changer_region','part_changer_types','part_changer_kind',
  350. // Multiplayer games
  351. 'mplay_init_ipx','mplay_init_tcpip','mplay_init_modem','mplay_init_serial',
  352. 'mplay_connect_status','mplay_end','mplay_ipaddress',
  353. 'mplay_session_create','mplay_session_find','mplay_session_name','mplay_session_join',
  354. 'mplay_session_mode','mplay_session_status','mplay_session_end',
  355. 'mplay_player_find','mplay_player_name','mplay_player_id',
  356. 'mplay_data_write','mplay_data_read','mplay_data_mode',
  357. 'mplay_message_send','mplay_message_send_guaranteed','mplay_message_receive','mplay_message_id',
  358. 'mplay_message_value','mplay_message_player','mplay_message_name','mplay_message_count',
  359. 'mplay_message_clear',
  360. // Using DLL's
  361. 'external_define','external_call','external_free','execute_string','execute_file','window_handle',
  362. // 3D Graphics
  363. 'd3d_start','d3d_end','d3d_set_hidden','d3d_set_perspective',
  364. 'd3d_set_depth',
  365. 'd3d_primitive_begin','d3d_vertex','d3d_vertex_color','d3d_primitive_end',
  366. 'd3d_primitive_begin_texture','d3d_vertex_texture','d3d_vertex_texture_color','d3d_set_culling',
  367. 'd3d_draw_block','d3d_draw_cylinder','d3d_draw_cone','d3d_draw_ellipsoid','d3d_draw_wall',
  368. 'd3d_draw_floor',
  369. 'd3d_set_projection','d3d_set_projection_ext','d3d_set_projection_ortho',
  370. 'd3d_set_projection_perspective',
  371. 'd3d_transform_set_identity','d3d_transform_set_translation','d3d_transform_set_scaling',
  372. 'd3d_transform_set_rotation_x','d3d_transform_set_rotation_y','d3d_transform_set_rotation_z',
  373. 'd3d_transform_set_rotation_axis','d3d_transform_add_translation','d3d_transform_add_scaling',
  374. 'd3d_transform_add_rotation_x','d3d_transform_add_rotation_y','d3d_transform_add_rotation_z',
  375. 'd3d_transform_add_rotation_axis','d3d_transform_stack_clear','d3d_transform_stack_empty',
  376. 'd3d_transform_stack_push','d3d_transform_stack_pop','d3d_transform_stack_top',
  377. 'd3d_transform_stack_discard',
  378. 'd3d_set_fog',
  379. 'd3d_set_lighting','d3d_set_shading','d3d_light_define_direction','d3d_light_define_point',
  380. 'd3d_light_enable','d3d_vertex_normal','d3d_vertex_normal_color','d3d_vertex_normal_texture',
  381. 'd3d_vertex_normal_texture_color',
  382. 'd3d_model_create','d3d_model_destroy','d3d_model_clear','d3d_model_save','d3d_model_load',
  383. 'd3d_model_draw','d3d_model_primitive_begin','d3d_model_vertex','d3d_model_vertex_color',
  384. 'd3d_model_vertex_texture','d3d_model_vertex_texture_color','d3d_model_vertex_normal',
  385. 'd3d_model_vertex_normal_color','d3d_model_vertex_normal_texture',
  386. 'd3d_model_vertex_normal_texture_color','d3d_model_primitive_end','d3d_model_block',
  387. 'd3d_model_cylinder','d3d_model_cone','d3d_model_ellipsoid','d3d_model_wall','d3d_model_floor'
  388. ),
  389. // constants
  390. 4 => array(
  391. 'true', 'false', 'pi',
  392. 'ev_destroy','ev_step','ev_alarm','ev_keyboard','ev_mouse','ev_collision','ev_other','ev_draw',
  393. 'ev_keypress','ev_keyrelease','ev_left_button','ev_right_button','ev_middle_button',
  394. 'ev_no_button','ev_left_press','ev_right_press','ev_middle_press','ev_left_release',
  395. 'ev_right_release','ev_middle_release','ev_mouse_enter','ev_mouse_leave','ev_mouse_wheel_up',
  396. 'ev_mouse_wheel_down','ev_global_left_button','ev_global_right_button','ev_global_middle_button',
  397. 'ev_global_left_press','ev_global_right_press','ev_global_middle_press','ev_global_left_release',
  398. 'ev_global_right_release','ev_global_middle_release','ev_joystick1_left','ev_joystick1_right',
  399. 'ev_joystick1_up','ev_joystick1_down','ev_joystick1_button1','ev_joystick1_button2',
  400. 'ev_joystick1_button3','ev_joystick1_button4','ev_joystick1_button5','ev_joystick1_button6',
  401. 'ev_joystick1_button7','ev_joystick1_button8','ev_joystick2_left','ev_joystick2_right',
  402. 'ev_joystick2_up','ev_joystick2_down','ev_joystick2_button1','ev_joystick2_button2',
  403. 'ev_joystick2_button3','ev_joystick2_button4','ev_joystick2_button5','ev_joystick2_button6',
  404. 'ev_joystick2_button7','ev_joystick2_button8',
  405. 'ev_outside','ev_boundary','ev_game_start','ev_game_end','ev_room_start','ev_room_end',
  406. 'ev_no_more_lives','ev_no_more_health','ev_animation_end','ev_end_of_path','ev_user0','ev_user1',
  407. 'ev_user2','ev_user3','ev_user4','ev_user5','ev_user6','ev_user7','ev_user8','ev_user9',
  408. 'ev_user10','ev_user11','ev_user12','ev_user13','ev_user14','ev_user15','ev_step_normal',
  409. 'ev_step_begin','ev_step_end',
  410. 'vk_nokey','vk_anykey','vk_left','vk_right','vk_up','vk_down','vk_enter','vk_escape','vk_space',
  411. 'vk_shift','vk_control','vk_alt','vk_backspace','vk_tab','vk_home','vk_end','vk_delete',
  412. 'vk_insert','vk_pageup','vk_pagedown','vk_pause','vk_printscreen',
  413. 'vk_f1','vk_f2','vk_f3','vk_f4','vk_f5','vk_f6','vk_f7','vk_f8','vk_f9','vk_f10','vk_f11','vk_f12',
  414. 'vk_numpad0','vk_numpad1','vk_numpad2','vk_numpad3','vk_numpad4','vk_numpad5','vk_numpad6',
  415. 'vk_numpad7','vk_numpad8','vk_numpad9', 'vk_multiply','vk_divide','vk_add','vk_subtract',
  416. 'vk_decimal','vk_lshift','vk_lcontrol','vk_lalt','vk_rshift','vk_rcontrol','vk_ralt',
  417. 'c_aqua','c_black','c_blue','c_dkgray','c_fuchsia','c_gray','c_green','c_lime','c_ltgray',
  418. 'c_maroon','c_navy','c_olive','c_purple','c_red','c_silver','c_teal','c_white','c_yellow',
  419. 'fa_left', 'fa_center','fa_right','fa_top','fa_middle','fa_bottom',
  420. 'pr_pointlist','pr_linelist','pr_linestrip','pr_trianglelist','pr_trianglestrip',
  421. 'pr_trianglefan',
  422. 'cr_none','cr_arrow','cr_cross','cr_beam','cr_size_nesw','cr_size_ns','cr_size_nwse',
  423. 'cr_size_we','cr_uparrow','cr_hourglass','cr_drag','cr_nodrop','cr_hsplit','cr_vsplit',
  424. 'cr_multidrag','cr_sqlwait','cr_no','cr_appstart','cr_help','cr_handpoint','cr_size_all',
  425. 'se_chorus','se_echo','se_flanger','se_gargle','se_reverb','se_compressor','se_equalizer',
  426. 'fa_readonly','fa_hidden','fa_sysfile','fa_volumeid','fa_directory','fa_archive',
  427. 'pt_shape_pixel','pt_shape_disk','pt_shape_square','pt_shape_line','pt_shape_star',
  428. 'pt_shape_circle','pt_shape_ring','pt_shape_sphere','pt_shape_flare','pt_shape_spark',
  429. 'pt_shape_explosion','pt_shape_cloud','pt_shape_smoke','pt_shape_snow',
  430. 'ps_shape_rectangle','ps_shape_ellipse ','ps_shape_diamond','ps_shape_line',
  431. 'ps_distr_linear','ps_distr_gaussian','ps_force_constant','ps_force_linear','ps_force_quadratic',
  432. 'ps_deflect_horizontal', 'ps_deflect_vertical',
  433. 'ps_change_motion','ps_change_shape','ps_change_all'
  434. ),
  435. ),
  436. 'SYMBOLS' => array(
  437. '(', ')', '{', '}', '[', ']', '&&', '||', '^^', '<', '<=', '==', '!=', '>', '>=',
  438. '|', '&', '^', '<<', '>>', '+', '-', '*', '/', '!', '-', '~'
  439. ),
  440. 'CASE_SENSITIVE' => array(
  441. GESHI_COMMENTS => false,
  442. 1 => true,
  443. 2 => true,
  444. 3 => true,
  445. 4 => true,
  446. ),
  447. 'STYLES' => array(
  448. 'KEYWORDS' => array(
  449. 1 => 'font-weight: bold; color: #000000;',
  450. 2 => 'font-weight: bold; color: #000000;',
  451. 3 => 'color: navy;',
  452. 4 => 'color: #663300;',
  453. ),
  454. 'COMMENTS' => array(
  455. 1 => 'font-style: italic; color: green;',
  456. 'MULTI' => 'font-style: italic; color: green;'
  457. ),
  458. 'ESCAPE_CHAR' => array(
  459. 0 => 'color: #000099; font-weight: bold;'
  460. ),
  461. 'BRACKETS' => array(
  462. 0 => 'color: #000000;' //'color: #66cc66;'
  463. ),
  464. 'STRINGS' => array(
  465. 0 => 'color: #ff0000;'
  466. ),
  467. 'NUMBERS' => array(
  468. 0 => 'color: #cc66cc;'
  469. ),
  470. 'METHODS' => array(
  471. 1 => 'color: #202020;'
  472. ),
  473. 'SYMBOLS' => array(
  474. 0 => 'color: #66cc66; font-weight: bold;'
  475. ),
  476. 'REGEXPS' => array(
  477. ),
  478. 'SCRIPT' => array(
  479. )
  480. ),
  481. 'URLS' => array(
  482. 1 => '',
  483. 2 => '',
  484. // All GML functions have been indexed, but need some corrections.
  485. 3 => 'http://www.zonamakers.com/gmlreference/{FNAME}.html', // (provisional, could change soon!)
  486. 4 => ''
  487. ),
  488. 'OOLANG' => true,
  489. 'OBJECT_SPLITTERS' => array(
  490. 1 => '.'
  491. ),
  492. 'REGEXPS' => array(
  493. ),
  494. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  495. 'SCRIPT_DELIMITERS' => array(
  496. ),
  497. 'HIGHLIGHT_STRICT_BLOCK' => array(
  498. )
  499. );