summaryrefslogtreecommitdiff
path: root/parser
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2022-04-21 10:48:47 +0100
committerLewis Russell <me@lewisr.dev>2022-09-12 11:49:51 +0100
commit2eaf18826988f921ddb39e4a2e7d23d95bb0e52a (patch)
tree4d4d76fd369b82f7a0ab26725f9c24cef13e6250 /parser
parent2bc82e814bbe25eb4b69e6d002c0e55573d726d4 (diff)
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.
Diffstat (limited to 'parser')
0 files changed, 0 insertions, 0 deletions