Skip to content

Commit

Permalink
feat: Update swift parser
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Dec 29, 2024
1 parent 0e21e12 commit 7aa6f5d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions treesit-fold-parsers.el
Original file line number Diff line number Diff line change
Expand Up @@ -669,14 +669,12 @@

(defun treesit-fold-parsers-swift ()
"Rule set for Swift."
'((switch_statement . treesit-fold-range-seq)
(function_declaration . treesit-fold-range-seq)
(enum_declaration . treesit-fold-range-seq)
(struct_declaration . treesit-fold-range-seq)
(class_declaration . treesit-fold-range-seq)
(protocol_declaration . treesit-fold-range-seq)
(extension_declaration . treesit-fold-range-seq)
(comment . treesit-fold-range-c-like-comment)))
'((function_body . treesit-fold-range-seq)
(class_body . treesit-fold-range-seq)
(enum_class_body . treesit-fold-range-seq)
(protocol_body . treesit-fold-range-seq)
(multiline_comment . treesit-fold-range-c-like-comment)
(comment . treesit-fold-range-c-like-comment)))

(defun treesit-fold-parsers-tablegen ()
"Rule set for Tablegen."
Expand Down

0 comments on commit 7aa6f5d

Please sign in to comment.