You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Skip comments entirely when evaluating indentation #209861
As part of the indentation improvement, we would like to entirely strip comments from the current line being considered before evaluating the indentation rules
Simplify the indentation regexes in order not to take into account comment placements for indentation.
Fixed with #210641. This PR actually treats strings, regexe and comment tokens in a similar manner. The language configuration brackets in these tokens are stripped and the indentation rules are evaluated on the stripped lines
Activity
RedCMD commentedon Apr 8, 2024
I think this is a good idea
but would it be optional or forced?
aiday-mar commentedon Apr 9, 2024
After discussion with my colleagues, we decided this would be forced. That is comments will never be considered in the indentation evaluation.
aiday-mar commentedon May 27, 2024
Fixed with #210641. This PR actually treats strings, regexe and comment tokens in a similar manner. The language configuration brackets in these tokens are stripped and the indentation rules are evaluated on the stripped lines