Mercurial > hg > octave-lyh
diff emacs/octave-mod.el @ 2775:c80d72d52385
[project @ 1997-03-01 07:37:31 by jwe]
author | jwe |
---|---|
date | Sat, 01 Mar 1997 07:37:35 +0000 |
parents | a27986cc4177 |
children | d21505cbcc58 |
line wrap: on
line diff
--- a/emacs/octave-mod.el +++ b/emacs/octave-mod.el @@ -55,6 +55,7 @@ (define-abbrev-table 'octave-abbrev-table ()) (define-abbrev octave-abbrev-table "`a" "all_va_args" nil) (define-abbrev octave-abbrev-table "`b" "break" nil) + (define-abbrev octave-abbrev-table "`cs" "case" nil) (define-abbrev octave-abbrev-table "`ca" "catch" nil) (define-abbrev octave-abbrev-table "`c" "continue" nil) (define-abbrev octave-abbrev-table "`el" "else" nil) @@ -64,6 +65,7 @@ (define-abbrev octave-abbrev-table "`ef" "endfor" nil) (define-abbrev octave-abbrev-table "`efu" "endfunction" nil) (define-abbrev octave-abbrev-table "`ei" "endif" nil) + (define-abbrev octave-abbrev-table "`es" "endswitch" nil) (define-abbrev octave-abbrev-table "`ew" "endwhile" nil) (define-abbrev octave-abbrev-table "`f" "for" nil) (define-abbrev octave-abbrev-table "`fu" "function" nil) @@ -71,8 +73,10 @@ (define-abbrev octave-abbrev-table "`gp" "gplot" nil) (define-abbrev octave-abbrev-table "`gs" "gsplot" nil) (define-abbrev octave-abbrev-table "`if" "if ()" nil) + (define-abbrev octave-abbrev-table "`o" "otherwise" nil) (define-abbrev octave-abbrev-table "`rp" "replot" nil) (define-abbrev octave-abbrev-table "`r" "return" nil) + (define-abbrev octave-abbrev-table "`s" "switch" nil) (define-abbrev octave-abbrev-table "`t" "try" nil) (define-abbrev octave-abbrev-table "`up" "unwind_protect" nil) (define-abbrev octave-abbrev-table "`upc" "unwind_protect_cleanup" nil) @@ -88,11 +92,11 @@ "Regexp to match the start of an Octave comment up to its body.") (defvar octave-begin-keywords - '("for" "function" "if" "try" "unwind_protect" "while")) + '("for" "function" "if" "switch" "try" "unwind_protect" "while")) (defvar octave-else-keywords - '("catch" "else" "elseif" "unwind_protect_cleanup")) + '("case" "catch" "else" "elseif" "otherwise" "unwind_protect_cleanup")) (defvar octave-end-keywords - '("end" "endfor" "endfunction" "endif" "end_try_catch" + '("end" "endfor" "endfunction" "endif" "endswitch" "end_try_catch" "end_unwind_protect" "endwhile")) (defvar octave-reserved-words @@ -319,6 +323,7 @@ '(("for" . ("end" "endfor")) ("function" . ("end" "endfunction")) ("if" . ("else" "elseif" "end" "endif")) + ("switch" . ("end" "endswitch")) ("try" . ("catch" "end" "end_try_catch")) ("unwind_protect" . ("unwind_protect_cleanup" "end" "end_unwind_protect"))