Skip to content

Commit afa4f3b

Browse files
authored
Merge pull request #11 from jcs-elpa/docs
chore(notes): add TODO notes, fix typo and update copyright year
2 parents dcd5b9f + 7f1e24c commit afa4f3b

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ Function takes 2 arguments, `node` and `offset`.
220220

221221
* `node` - the targeting tree-sitter node; in this example, `block` will be the
222222
targeting node.
223-
* `offset` - (optiona) a cons consist of two integers. This is handy when you have
223+
* `offset` - (optional) a cons consist of two integers. This is handy when you have
224224
a similar rule with little of positioning adjustment.
225225

226226
`tree-sitter-[lang]` parsers are generally integrated with different authors,

ts-fold-indicators.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; ts-fold-indicators.el --- Display indicators for folding range -*- lexical-binding: t; -*-
22

3-
;; Copyright (C) 2021 Shen, Jen-Chieh
3+
;; Copyright (C) 2021-2022 Shen, Jen-Chieh
44
;; Created date 2021-10-04 20:03:12
55

66
;; This file is NOT part of GNU Emacs.

ts-fold-parsers.el

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; ts-fold-parsers.el --- Adapter layer to Tree-Sitter -*- lexical-binding: t; -*-
22

3-
;; Copyright (C) 2021 Shen, Jen-Chieh
3+
;; Copyright (C) 2021-2022 Shen, Jen-Chieh
44
;; Created date 2021-10-04 17:45:48
55

66
;; This file is NOT part of GNU Emacs.
@@ -33,6 +33,8 @@
3333
;; (@* "Externals" )
3434
;;
3535

36+
;; TODO(everyone): keep the forward declared alphabetically sorted
37+
3638
(declare-function ts-fold-range-seq "ts-fold.el")
3739
(declare-function ts-fold-range-line-comment "ts-fold.el")
3840
(declare-function ts-fold-range-block-comment "ts-fold.el")
@@ -51,6 +53,8 @@
5153
;; (@* "Parsers" )
5254
;;
5355

56+
;; TODO(everyone): keep the function alphabetically sorted
57+
5458
(defun ts-fold-parsers-agda ()
5559
"Rule sets for Agda."
5660
'(()))

ts-fold-summary.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; ts-fold-summary.el --- Extract summary from fold region -*- lexical-binding: t; -*-
22

3-
;; Copyright (C) 2021 Shen, Jen-Chieh
3+
;; Copyright (C) 2021-2022 Shen, Jen-Chieh
44
;; Created date 2021-10-04 16:59:22
55

66
;; This file is NOT part of GNU Emacs.
@@ -193,6 +193,7 @@ type of content by checking the word boundary's existence."
193193
summary (propertize summary 'face 'ts-fold-replacement-face))))
194194
summary))
195195

196+
;; TODO(everyone): keep this alist alphabetically sorted
196197
(defcustom ts-fold-summary-parsers-alist
197198
`((actionscript-mode . ts-fold-summary-javadoc)
198199
(bat-mode . ts-fold-summary-batch)

ts-fold-util.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; ts-fold-util.el --- Utility module -*- lexical-binding: t; -*-
22

3-
;; Copyright (C) 2021 Shen, Jen-Chieh
3+
;; Copyright (C) 2021-2022 Shen, Jen-Chieh
44
;; Created date 2021-10-04 20:19:42
55

66
;; This file is NOT part of GNU Emacs.

ts-fold.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
;;; ts-fold.el --- Code folding using tree-sitter -*- lexical-binding: t; -*-
22

33
;; Copyright (C) 2021 Junyi Hou
4-
;; Copyright (C) 2021 Shen, Jen-Chieh
4+
;; Copyright (C) 2021-2022 Shen, Jen-Chieh
55

66
;; Created date 2021-08-11 14:12:37
77

@@ -61,6 +61,8 @@
6161
6262
The alist is in form of (major-mode . (foldable-node-type)).")
6363

64+
;; TODO(everyone): This is a bit messy, but try to keep this alist
65+
;; alphabetically sorted
6466
(defcustom ts-fold-range-alist
6567
`((agda-mode . ,(ts-fold-parsers-agda))
6668
(sh-mode . ,(ts-fold-parsers-bash))

0 commit comments

Comments
 (0)