Closed glhey closed 1 year ago
The reason for this is most likely that the indenter is not working off of the parse-tree but off the raw string representation. This means it's using heuristics to determine indentation.
So this is basically a duplicate of #5905 although the grammar feature triggering the indentation is a different one.
Version 2.5.2.5906 OS: Microsoft Windows NT 10.0.19045.0, x64 Host Product: Microsoft Office x64 Host Version: 16.0.16529.20154 Host Executable: MSACCESS.EXE
INDENT recognises Compiler Directives even if they're commented out, then removes indent for that last recognised compiler directive and for ALL lines that follow
To reproduce, use this snippet in any module:
Unexpected result:
' #End If ' --------------------------------------------------------- ' TODO: Confirm if latebind will kill all Excel processes unitentionally on closing (Greg Long) ' To mitigate, place a space between # and directive like this