[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"
- feature/tree-sitter updated (c4179117af -> f1e058d46b), Yuan Fu, 2022/10/15
- feature/tree-sitter 77f1533ccb 2/8: ; Comment and docstring fixup in ts-mode.el,
Yuan Fu <=
- feature/tree-sitter bc66ff9875 4/8: * src/treesit.c (Ftreesit_query_language): New function., Yuan Fu, 2022/10/15
- feature/tree-sitter f0e9085a17 5/8: * doc/lispref/parsing.texi: Add manual for treesit-query-language., Yuan Fu, 2022/10/15
- feature/tree-sitter 0b3f785c4a 3/8: Better signal data for treesit-load-language-error, Yuan Fu, 2022/10/15
- feature/tree-sitter 45b8204e09 1/8: Add TypeScript support with tree-sitter, Yuan Fu, 2022/10/15
- feature/tree-sitter af288d813b 6/8: Rework tree-sitter font-lock, Yuan Fu, 2022/10/15
- feature/tree-sitter bb8a46e559 7/8: Update tree-sitter manual to reflect the previous commit, Yuan Fu, 2022/10/15
- feature/tree-sitter f1e058d46b 8/8: Update ts-mode font-lock to work with tree-sitter's :feature, Yuan Fu, 2022/10/15