Add fold support for comment blocks in various languages

This commit introduces new fold support for comment blocks
in Bash, CSS, HTML, JavaScript, Lua, Python, SCSS, TSX,
TypeScript, and Vim, enhancing code readability and
organization.
This commit is contained in:
Ray Elliott 2026-01-13 20:14:28 +00:00
parent 51e5c2a602
commit b53515e492
10 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,4 @@
;; extends
;; Fold comment blocks
(comment) @fold

View File

@ -0,0 +1,4 @@
;; extends
;; Fold comment blocks
(comment) @fold

View File

@ -0,0 +1,4 @@
;; extends
;; Fold comment blocks
(comment) @fold

View File

@ -0,0 +1,8 @@
;; extends
;; Fold comment blocks (including consecutive single-line comments)
(comment) @fold
;; Fold consecutive single-line comments as a block
((comment) @fold
(#match? @fold "^//"))

View File

@ -0,0 +1,4 @@
;; extends
;; Fold comment blocks
(comment) @fold

View File

@ -0,0 +1,4 @@
;; extends
;; Fold comment blocks
(comment) @fold

View File

@ -0,0 +1,4 @@
;; extends
;; Fold comment blocks
(comment) @fold

View File

@ -0,0 +1,4 @@
;; extends
;; Fold comment blocks
(comment) @fold

View File

@ -0,0 +1,4 @@
;; extends
;; Fold comment blocks
(comment) @fold

View File

@ -0,0 +1,4 @@
;; extends
;; Fold comment blocks
(comment) @fold