update sex-mode.el
- add switch and case indents - add begin and default highlighting as keywords
This commit is contained in:
@@ -51,7 +51,9 @@ All commands in `lisp-mode-shared-map' are inherited by this map.")
|
|||||||
;; Keywords
|
;; Keywords
|
||||||
(list (concat "("
|
(list (concat "("
|
||||||
(regexp-opt '(
|
(regexp-opt '(
|
||||||
|
"begin"
|
||||||
"case"
|
"case"
|
||||||
|
"default"
|
||||||
"do"
|
"do"
|
||||||
"if"
|
"if"
|
||||||
"for"
|
"for"
|
||||||
@@ -83,6 +85,8 @@ All commands in `lisp-mode-shared-map' are inherited by this map.")
|
|||||||
(put 'union 'lisp-indent-function 'defun)
|
(put 'union 'lisp-indent-function 'defun)
|
||||||
(put 'var 'lisp-indent-function 0)
|
(put 'var 'lisp-indent-function 0)
|
||||||
(put 'import 'lisp-indent-function 1)
|
(put 'import 'lisp-indent-function 1)
|
||||||
|
(put 'switch 'lisp-indent-function 1)
|
||||||
|
(put 'case 'lisp-indent-function 1)
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(define-derived-mode sex-mode lisp-data-mode "Sex"
|
(define-derived-mode sex-mode lisp-data-mode "Sex"
|
||||||
|
|||||||
Reference in New Issue
Block a user