From: Yuan Fu Date: Wed, 12 Oct 2022 06:49:04 +0000 (-0700) Subject: ; Comment and docstring fixup in ts-mode.el X-Git-Tag: emacs-29.0.90~1836 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=77f1533ccbba1a5dc0824770046696181a2b7b6c;p=emacs.git ; Comment and docstring fixup in ts-mode.el * lisp/progmodes/ts-mode.el: Add comment section and docstrings. --- diff --git a/lisp/progmodes/ts-mode.el b/lisp/progmodes/ts-mode.el index 99ffe0c0f63..638dfa50135 100644 --- a/lisp/progmodes/ts-mode.el +++ b/lisp/progmodes/ts-mode.el @@ -22,6 +22,8 @@ ;; You should have received a copy of the GNU General Public License ;; along with this program. If not, see . +;;; Code: + (require 'treesit) (require 'rx) (require 'js) @@ -99,7 +101,8 @@ ((node-is "/") parent 0) ((parent-is "jsx_self_closing_element") parent ,ts-mode-indent-offset) - (no-node parent-bol 0)))) + (no-node parent-bol 0))) + "Tree-sitter indent rules.") (defvar ts-mode--settings (treesit-font-lock-rules @@ -281,7 +284,8 @@ ] @font-lock-keyword-face (comment) @font-lock-comment-face - ))) + )) + "Tree-sitter font-lock settings.") (defvar ts-mode--defun-type-regexp (rx (or "class_declaration"