This website requires JavaScript.
Explore
Help
Sign in
benbot
/
nvim-treesitter
Watch
1
Star
0
Fork
You've already forked nvim-treesitter
0
mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced
2026-07-06 21:40:03 -04:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
a76db88548
nvim-treesitter
/
queries
/
markdown
/
folds.scm
10 lines
110 B
Scheme
Raw
Normal View
History
Unescape
Escape
fix(fold): don't include whitespace end regions Some languages that are difficult to parse via Treesitter may incorrectly include whitespace lines at the end of regions. This can makes the calculated folds sub-optimal. To recitfy, use a custom directive (trim), to calculate the range with the trailing whitespace lines removed. Note this only works if the region end column is 0. Also added folds for Make.
2022-04-21 10:48:47 +01:00
(
[
(
fenced_code_block
)
(
indented_code_block
)
(
list
)
(
section
)
]
@fold
(
#t
rim!
@fold
)
)
Reference in a new issue
Copy permalink