]> git.eshelyaron.com Git - emacs.git/commit
Add separate tiny major mode for JSON
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 9 Aug 2022 01:00:08 +0000 (04:00 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 9 Aug 2022 01:44:01 +0000 (04:44 +0300)
commitd2080e4183e462331bdb90476395d1ad003de7bb
tree86c4b0b1fdba9cc5afa20e5f128aba43546d422b
parentd6ea4894d3b0bb7d2159bc36b9c5e2ead8afd5b2
Add separate tiny major mode for JSON

* lisp/progmodes/js.el (js-json-mode): New major mode.

* lisp/files.el (auto-mode-alist): Use it for JSON (bug#56682).

* lisp/progmodes/js.el (js--class-decl-matcher):
Skip work if there are no frameworks enabled.
lisp/files.el
lisp/progmodes/js.el