]> git.eshelyaron.com Git - emacs.git/commitdiff
; Comment and docstring fixup in ts-mode.el
authorYuan Fu <casouri@gmail.com>
Wed, 12 Oct 2022 06:49:04 +0000 (23:49 -0700)
committerYuan Fu <casouri@gmail.com>
Wed, 12 Oct 2022 06:49:04 +0000 (23:49 -0700)
* lisp/progmodes/ts-mode.el: Add comment section and docstrings.

lisp/progmodes/ts-mode.el

index 99ffe0c0f63c89756a4ea0aadb0efda240677934..638dfa501354bfb4dc75462f01bff37f5d419307 100644 (file)
@@ -22,6 +22,8 @@
 ;; You should have received a copy of the GNU General Public License
 ;; along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+;;; Code:
+
 (require 'treesit)
 (require 'rx)
 (require 'js)
      ((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
       ] @font-lock-keyword-face
 
      (comment) @font-lock-comment-face
-     )))
+     ))
+  "Tree-sitter font-lock settings.")
 
 (defvar ts-mode--defun-type-regexp
   (rx (or "class_declaration"