emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/tree-sitter 77f1533ccb 2/8: ; Comment and docstring fixup in ts-


From: Yuan Fu
Subject: feature/tree-sitter 77f1533ccb 2/8: ; Comment and docstring fixup in ts-mode.el
Date: Sat, 15 Oct 2022 19:10:37 -0400 (EDT)

branch: feature/tree-sitter
commit 77f1533ccbba1a5dc0824770046696181a2b7b6c
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    ; 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 99ffe0c0f6..638dfa5013 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 <http://www.gnu.org/licenses/>.
 
+;;; 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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]