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:
parent
51e5c2a602
commit
b53515e492
|
|
@ -0,0 +1,4 @@
|
|||
;; extends
|
||||
|
||||
;; Fold comment blocks
|
||||
(comment) @fold
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
;; extends
|
||||
|
||||
;; Fold comment blocks
|
||||
(comment) @fold
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
;; extends
|
||||
|
||||
;; Fold comment blocks
|
||||
(comment) @fold
|
||||
|
|
@ -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 "^//"))
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
;; extends
|
||||
|
||||
;; Fold comment blocks
|
||||
(comment) @fold
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
;; extends
|
||||
|
||||
;; Fold comment blocks
|
||||
(comment) @fold
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
;; extends
|
||||
|
||||
;; Fold comment blocks
|
||||
(comment) @fold
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
;; extends
|
||||
|
||||
;; Fold comment blocks
|
||||
(comment) @fold
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
;; extends
|
||||
|
||||
;; Fold comment blocks
|
||||
(comment) @fold
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
;; extends
|
||||
|
||||
;; Fold comment blocks
|
||||
(comment) @fold
|
||||
Loading…
Reference in New Issue