Skip to content

Commit

Permalink
feat: Add heex support (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
akirak authored Oct 31, 2024
1 parent 11add1f commit f6d0b17
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions treesit-fold-parsers.el
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,12 @@
'((block . treesit-fold-range-seq)
(comment . treesit-fold-range-c-like-comment)))

(defun treesit-fold-parsers-heex ()
"Rule set for Heex."
'((tag . treesit-fold-range-html)
(component . treesit-fold-range-html)
(comment . (treesit-fold-range-seq 1 -1))))

(defun treesit-fold-parsers-hlsl ()
"Rule set for HLSL."
'((field_declaration_list . treesit-fold-range-seq)
Expand Down
1 change: 1 addition & 0 deletions treesit-fold-summary.el
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ type of content by checking the word boundary's existence."
(jenkinsfile-mode . treesit-fold-summary-javadoc)
(haskell-mode . treesit-fold-summary-lua-doc)
(haxe-mode . treesit-fold-summary-javadoc)
(heex-mode . treesit-fold-summary-xml)
(hlsl-mode . treesit-fold-summary-c)
(html-mode . treesit-fold-summary-xml)
(jai-mode . treesit-fold-summary-c)
Expand Down
2 changes: 2 additions & 0 deletions treesit-fold.el
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@
(haskell-mode . ,(treesit-fold-parsers-haskell))
(haskell-ts-mode . ,(treesit-fold-parsers-haskell))
(haxe-mode . ,(treesit-fold-parsers-haxe))
(heex-mode . ,(treesit-fold-parsers-heex))
(heex-ts-mode . ,(treesit-fold-parsers-heex))
(hlsl-mode . ,(treesit-fold-parsers-hlsl))
(hlsl-ts-mode . ,(treesit-fold-parsers-hlsl))
(html-mode . ,(treesit-fold-parsers-html))
Expand Down

0 comments on commit f6d0b17

Please sign in to comment.