In some languages, preprocessor directives are used, most commonly C-style. These directives always start at the beginning of the line. This can lead to code like:
The preprocessor lines confuse the guide creation, since they interrupt the indentation.
Possible solutions?
It likely is a problem without a good general solution; Interruptions of a strict "logical level = indent level" pattern may occur differently from code base to code base, even within the same language.
The best bet would likely be to allow configuring a regexp for lines to be ignored, which could then be customized per-mode, per-file or per-directory through mode-hooks, directory-local variables and file-local variables.
In some languages, preprocessor directives are used, most commonly C-style. These directives always start at the beginning of the line. This can lead to code like:
Expectation
Consistent guides across the directives.
(Mockup)
Result
The preprocessor lines confuse the guide creation, since they interrupt the indentation.
Possible solutions?
It likely is a problem without a good general solution; Interruptions of a strict "logical level = indent level" pattern may occur differently from code base to code base, even within the same language.
The best bet would likely be to allow configuring a regexp for lines to be ignored, which could then be customized per-mode, per-file or per-directory through mode-hooks, directory-local variables and file-local variables.