mirror of
https://github.com/textmate/textmate.git
synced 2026-01-22 13:17:55 -05:00
This solves the problem where we need to estimate the current line’s indent, but the lines above it is a multi-line block comment. Previously we would fetch indent patterns based on the current scope, then find the first line above caret, for which the patterns can be used to estimate the indent. The problem is that the commented lines without comment markers would be treated as code, and used for the indent. With the new approach, we can set different patterns for ‘comment.block’ (the C bundle already does this), which basically ignore all the lines, which will cause TextMate to use the code above the comment to estimate indent. This commit closes textmate/c.tmbundle#3 and also closes textmate/php.tmbundle#24.