From 77f1533ccbba1a5dc0824770046696181a2b7b6c Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Tue, 11 Oct 2022 23:49:04 -0700 Subject: [PATCH] ; Comment and docstring fixup in ts-mode.el * lisp/progmodes/ts-mode.el: Add comment section and docstrings. --- lisp/progmodes/ts-mode.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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" -- 2.39.2