A Block currently doesn't get parsed to include the whitespace immediately preceding it or trailing it. For example, consider this bit of BrightScript:
sub Main()
age = 1
end sub
The parsed Block attached to the Main function will have a starting and ending line of 2, but it actually starts at the end of line 1 and beginning of line 5!
Related to #134, but probably won't make it into 0.13.0 at the current rate. There's some further AST improvements necessary anyway, so this might get packaged up with that.
A
Block
currently doesn't get parsed to include the whitespace immediately preceding it or trailing it. For example, consider this bit of BrightScript:The parsed
Block
attached to theMain
function will have a starting and ending line of2
, but it actually starts at the end of line 1 and beginning of line 5!Reported by @TwitchBronBron.