Skip to content

Commit 52d3697

Browse files
authored
chore(list): sort language alphabetically (#12)
* Sort list alphabetically * doc * list
1 parent ae12dd8 commit 52d3697

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,13 @@ then in Emacs:
6969

7070
## 🔨 Supported languages
7171

72-
> These languages are fairly complete:
72+
> ⚠️ Please sort these two lists alphabetically!
73+
74+
These languages are fairly complete:
7375

7476
* Bash
7577
* C / C++ / C# / CSS
78+
* Elixir
7679
* Go
7780
* HTML
7881
* Java / JavaScript / JSX / JSON
@@ -81,9 +84,8 @@ then in Emacs:
8184
* R / Ruby / Rust
8285
* Scala / Swift
8386
* TypeScript / TSX
84-
* Elixir
8587

86-
> These languages are in development:
88+
These languages are in development:
8789

8890
* Agda
8991
* Elm

ts-fold-parsers.el

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,16 @@
107107
(block . ts-fold-range-seq)
108108
(comment . ts-fold-range-c-like-comment)))
109109

110+
(defun ts-fold-parsers-elixir ()
111+
"Rules sets for Elixir."
112+
'((list . ts-fold-range-seq)
113+
(map . ts-fold-range-seq)
114+
(tuple . ts-fold-range-seq)
115+
(comment
116+
. (lambda (node offset)
117+
(ts-fold-range-line-comment node offset "#")))
118+
(do_block .ts-fold-range-elixir)))
119+
110120
(defun ts-fold-parsers-go ()
111121
"Rule sets for Go."
112122
'((block . ts-fold-range-seq)
@@ -218,14 +228,6 @@
218228
(defun ts-fold-parsers-typescript ()
219229
"Rule sets for TypeScript."
220230
(append (ts-fold-parsers-javascript)))
221-
(defun ts-fold-parsers-elixir ()
222-
"Rules sets for Elixir."
223-
'((list . ts-fold-range-seq)
224-
(map . ts-fold-range-seq)
225-
(tuple . ts-fold-range-seq)
226-
(comment
227-
. (lambda (node offset)
228-
(ts-fold-range-line-comment node offset "#")))
229-
(do_block .ts-fold-range-elixir)))
231+
230232
(provide 'ts-fold-parsers)
231233
;;; ts-fold-parsers.el ends here

ts-fold.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ The alist is in form of (major-mode . (foldable-node-type)).")
6565
;; alphabetically sorted
6666
(defcustom ts-fold-range-alist
6767
`((agda-mode . ,(ts-fold-parsers-agda))
68-
(elixir-mode . ,(ts-fold-parsers-elixir))
6968
(c-mode . ,(ts-fold-parsers-c))
7069
(c++-mode . ,(ts-fold-parsers-c++))
7170
(csharp-mode . ,(ts-fold-parsers-csharp))
7271
(css-mode . ,(ts-fold-parsers-css))
72+
(elixir-mode . ,(ts-fold-parsers-elixir))
7373
(ess-r-mode . ,(ts-fold-parsers-r))
7474
(go-mode . ,(ts-fold-parsers-go))
7575
(html-mode . ,(ts-fold-parsers-html))

0 commit comments

Comments
 (0)