sjbarag / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
113 stars 43 forks source link

Using `stop` keyword as object key causes parse errors #164

Closed TwitchBronBron closed 5 years ago

TwitchBronBron commented 5 years ago

This brightscript code causes a parse error because the stop keyword is not being interpreted as an identifier.

function GetObject()
    obj = {
        stop: function() as void

        end function
    }
    return obj
end function

image

sjbarag commented 5 years ago

Great catch! Pulling this into 0.13.0.