]> git.eshelyaron.com Git - emacs.git/commit
Separate tree-sitter and non-tree-sitter variant of sh-mode feature/tree-sitter
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 08:56:28 +0000 (00:56 -0800)
commit6fde1fcd0fb5111f3262e5ff829b19ec9f136d90
tree8b4b43dd41e5cfc3dfc5ca367435b863cef3bcc6
parent7144e38da828c885b6d11c96bbccbd72f527c162
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