nojanath / SublimeKSP

Fork of Nils Liberg's SublimeKSP plugin. See README for details.
GNU General Public License v3.0
87 stars 18 forks source link

Add ParseException for unassigned const variables #331

Closed JackWilliams-FractureSounds closed 1 year ago

JackWilliams-FractureSounds commented 1 year ago

should be fix in comp_extras.ASTVisitorCheckDeclarations

on init
    declare const name
end on
mkruselj commented 1 year ago

Yeah there actually is a raise ParseException there but it's in the wrong place, it should be outside of the big if clause I think. But also that whole if clause (if 'const' in node.modifiers:) seems quite a bit suspicious, I am not sure I can get any of those parse exceptions to show up by doing literal things those messages are reporting about...