]> git.eshelyaron.com Git - emacs.git/commit
Separate tree-sitter and non-tree-sitter variant of sh-mode
authorYuan Fu <casouri@gmail.com>
Tue, 22 Nov 2022 08:49:04 +0000 (00:49 -0800)
committerYuan Fu <casouri@gmail.com>
Tue, 22 Nov 2022 09:06:52 +0000 (01:06 -0800)
commit1161c96cc9cd4383d39611c018c48f15bb9367e5
tree3b1b9a6df8a56b6826b7c11e5153017b6e1dd042
parente494ca4f4dc0cf609b5ce444b44261b4b4b521f9
Separate tree-sitter and non-tree-sitter variant of sh-mode

Now there are three modes, sh-base-mode, sh-mode, bash-ts-mode.

The change I made: change sh-mode to sh-base-mode, remove docstring.
Below the new sh-base-mode, create a new definition for sh-mode, paste
the dostring, add setup for font-lock-defaults.  Below sh-mode, add
bash-ts-mode.

* lisp/progmodes/sh-script.el (sh-mode): Moves all setup into
sh-base-mode, except for the setup for font-lock-defaults and the
docstring.
(sh-base-mode): New mode.
(bash-ts-mode): New mode.
lisp/progmodes/sh-script.el