mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-14 10:00:25 -08:00
hideshow: Rework previous changes
* doc/emacs/programs.texi (Hideshow): * etc/NEWS: Fix doc. * lisp/progmodes/hideshow.el: Update Commentary Header. (hs-modes-alist): Remove. (hs--get-mode-value, hs-grok-mode-type): Rework. * lisp/treesit.el (treesit-major-mode-setup): * lisp/emacs-lisp/lisp-mode.el: * lisp/nxml/nxml-mode.el: * lisp/progmodes/cc-mode.el: * lisp/progmodes/f90.el: * lisp/progmodes/fortran.el: * lisp/progmodes/hideshow.el: * lisp/progmodes/icon.el: * lisp/progmodes/js.el: * lisp/progmodes/lua-mode.el: * lisp/progmodes/python.el: * lisp/progmodes/verilog-mode.el: * lisp/progmodes/vhdl-mode.el: * lisp/textmodes/bibtex.el: * lisp/textmodes/mhtml-mode.el: * lisp/textmodes/sgml-mode.el: * lisp/treesit.el: Fix and rework previous changes.
This commit is contained in:
parent
2c41bfabbc
commit
cc589d7003
18 changed files with 228 additions and 243 deletions
|
|
@ -667,7 +667,11 @@ Do \\[describe-key] on the following bindings to discover what they do.
|
|||
,(concat "<[^>]+[ \t\n]+[Nn][Aa][Mm][Ee]=\\(['\"]"
|
||||
(if sgml-xml-mode "" "?")
|
||||
"\\)\\(" sgml-name-re "\\)\\1")
|
||||
2))))
|
||||
2)))
|
||||
(setq-local hs-block-start-regexp "<[^/>]*?")
|
||||
(setq-local hs-block-end-regexp "</[^/>]*[^/]>")
|
||||
(setq-local hs-c-start-regexp "<!--")
|
||||
(setq-local hs-forward-sexp-func #'sgml-skip-tag-forward))
|
||||
|
||||
(defun sgml-comment-indent ()
|
||||
(if (looking-at "--") comment-column 0))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue