Skip to content

Commit 5711d9f

Browse files
committed
refactor(parsers): Place it in alphabetic order
1 parent a7c2994 commit 5711d9f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ts-fold-parsers.el

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,13 @@
159159
(interpolation . ts-fold-range-seq)
160160
(list . ts-fold-range-seq)))
161161

162+
(defun ts-fold-parsers-ocaml ()
163+
"Rule set for OCaml."
164+
'((comment . ts-fold-range-ocaml-comment)
165+
(module_definition . ts-fold-range-ocaml-module-definition)
166+
(type_definition . ts-fold-range-ocaml-type-definition)
167+
(value_definition . ts-fold-range-ocaml-value-definition)))
168+
162169
(defun ts-fold-parsers-php ()
163170
"Rule set for PHP."
164171
'((namespace_use_group . ts-fold-range-seq)
@@ -172,13 +179,6 @@
172179
(ts-fold-range-line-comment node offset "#")
173180
(ts-fold-range-c-like-comment node offset))))))
174181

175-
(defun ts-fold-parsers-ocaml ()
176-
"Rule sets for OCaml."
177-
'((comment . ts-fold-range-ocaml-comment)
178-
(module_definition . ts-fold-range-ocaml-module-definition)
179-
(type_definition . ts-fold-range-ocaml-type-definition)
180-
(value_definition . ts-fold-range-ocaml-value-definition)))
181-
182182
(defun ts-fold-parsers-python ()
183183
"Rule set for Python."
184184
'((function_definition . ts-fold-range-python)

0 commit comments

Comments
 (0)