From 24b3e719690993e8b912487909b3f1eb83ba1173 Mon Sep 17 00:00:00 2001 From: alex-eg Date: Tue, 28 Apr 2026 14:27:15 +0300 Subject: [PATCH] update sex-mode.el - add switch and case indents - add begin and default highlighting as keywords --- sex-mode.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sex-mode.el b/sex-mode.el index 8eb676e..05c6ed7 100644 --- a/sex-mode.el +++ b/sex-mode.el @@ -51,7 +51,9 @@ All commands in `lisp-mode-shared-map' are inherited by this map.") ;; Keywords (list (concat "(" (regexp-opt '( + "begin" "case" + "default" "do" "if" "for" @@ -83,6 +85,8 @@ All commands in `lisp-mode-shared-map' are inherited by this map.") (put 'union 'lisp-indent-function 'defun) (put 'var 'lisp-indent-function 0) (put 'import 'lisp-indent-function 1) +(put 'switch 'lisp-indent-function 1) +(put 'case 'lisp-indent-function 1) ;;;###autoload (define-derived-mode sex-mode lisp-data-mode "Sex"