.#& matlab°" $1ý " $1þ ( keymap_p.ý " $1þ + make_keymap/bý. matlab_comment" ; " $1þ ) definekeyý0 matlab_uncomment" : " $1þ ) definekeyý " $1þ 3 create_syntax_tableý! % " 37 " $1þ - define_syntaxý! # " 37 " $1þ - define_syntaxý# ([{# )]} " 40 " $1þ - define_syntaxý" 34" 34 " $1þ - define_syntaxý" 92" 92 " $1þ - define_syntaxý* 0-9a-zA-Z_# 119 " $1þ - define_syntaxý- 0-9a-fA-F.xXL" 48 " $1þ - define_syntaxý" ,;" 44 " $1þ - define_syntaxý0 !&+-.*^;<>|~='/:" 43 " $1þ - define_syntaxý " $1! 4þ 0 set_syntax_flagsý " $1& cdifls! 2! 0þ 1 define_keywords_nPý " $12 direndforsettrywho! 3! 0þ 1 define_keywords_nPý " $1T caseechoelsegsethdirhelpholdloadmoresaveshowtypewhos! 4! 0þ 1 define_keywords_nPý " $1 M breakcatchcleardiaryendifgplotgshowwhichwhile! 5! 0þ 1 define_keywords_nPý " $1J elseifendforformatglobalgsplotreturnswitch! 6! 0þ 1 define_keywords_nPý " $1. casesenhistory! 7! 0þ 1 define_keywords_nPý " $18 continueendwhilefunction! 8! 0þ 1 define_keywords_nPý " $1) endswitch! 9! 0þ 1 define_keywords_nPý " $1A all_va_argsendfunctionrun_history" 11! 0þ 1 define_keywords_nPý " $1, edit_history" 12! 0þ 1 define_keywords_nPý " $1- end_try_catch" 13! 0þ 1 define_keywords_nPý " $1 . unwind_protect" 14! 0þ 1 define_keywords_nPý " $12 end_unwind_protect" 18! 0þ 1 define_keywords_nPý " $16 unwind_protect_cleanup" 22! 0þ 1 define_keywords_nP* 4 Matlab_Continue_Char+" \\°4 Matlab_Continue_Char* - Matlab_Indent+! 2 °- Matlab_Indent,* $ goal+! 1°$ goal* " cs+ + CASE_SEARCH°" cs* " ch+. # bolý" þ * skip_charsý 4 Matlab_Continue_Charþ * looking_at. * go_right_1/c * skip_white/p ) push_spot ) push_spot! 1°+ CASE_SEARCH. $ up_1/. . bol_skip_white $ eolpý 4 Matlab_Continue_Charþ * looking_atD.u/c - X_USER_BLOCK0 + what_column°$ goalý& switchþ * looking_at.! 2 - Matlab_Indent;±$ goal/cý# if þ * looking_atý# if(þ * looking_atDý$ caseþ * looking_atDý) otherwiseþ * looking_atDý% whileþ * looking_atDý $ for þ * looking_atDý$ elseþ * looking_atDý& elseifþ * looking_atDý6 unwind_protect_cleanupþ * looking_atDý. unwind_protectþ * looking_atDý# tryþ * looking_atDý% catchþ * looking_atDý( functionþ * looking_atD. - Matlab_Indent±$ goal/cv/f ( pop_spot ) push_spot - X_USER_BLOCK0ý) endswitchþ * looking_at.! 2 - Matlab_Indent;²$ goal/cý# endþ * looking_atý% endifþ * looking_atDý$ caseþ * looking_atDý( endwhileþ * looking_atDý& endforþ * looking_atDý- end_try_catchþ * looking_atDý 6 unwind_protect_cleanupþ * looking_atDý2 end_unwind_protectþ * looking_atDý$ elseþ * looking_atDý+ endfunctionþ * looking_atD. - Matlab_Indent²$ goal/c " cs°+ CASE_SEARCH $ goal! 1=.! 1°$ goal/c ( pop_spot . bol_skip_whiteý ) what_charþ $ char °" ch ( bol_trimý¹$ goal $ goalþ - insert_spaces ( pop_spot * skip_whitey- matlab_indent, $ bolp. ' newlinew/c - matlab_indent ' newline - matlab_indenty. matlab_newline, # bolý% 0-9þ * skip_chars $ bolp $ eolpNCy1 matlab_is_comment, ) push_spot 1 matlab_is_comment. # bolý! %þ * looking_atý! #þ * looking_atJ.ý! 1þ $ deln/. # del/d/c - matlab_indent ( pop_spot ) go_down_1y0 matlab_uncomment, 1 matlab_is_comment. - push_spot_bolý! %þ & insert/b ( pop_spot ) go_down_1y. matlab_comment,* $ kmap+& matlab°$ kmapý $ kmap! 2þ ( set_modeý $ kmapþ * use_keymapý $ kmapþ 0 use_syntax_tableý+ indent_hook- matlab_indentþ / set_buffer_hooký3 newline_indent_hook. matlab_newlineþ / set_buffer_hooký0 matlab_mode_hookþ . run_mode_hooks y+ matlab_mode