SpacemanDMM icon indicating copy to clipboard operation
SpacemanDMM copied to clipboard

VarDeclaration have incorrect locations

Open spookydonut opened this issue 3 years ago • 1 comments

/datum
    var/bar

/datum/proc/foo()

bar's location is incorrectly reported at what i assume is the next token, foo()

same for

datum_flags = NONE

it reports the location as the = not the var name

This will also apply across file boundaries, if the last token in a file is a var decl then it reports the location as the first token in the next file in the .dme

spookydonut avatar Oct 11 '20 15:10 spookydonut

As far as I can tell it's reporting the location as the end of the whitespace following the identifier, rather than the next token.

MarinaGryphon avatar Nov 01 '21 14:11 MarinaGryphon