coronalabs / CoronaSDK-SublimeText

Corona Editor is the official Corona SDK plugin for Sublime Text
https://coronalabs.com
MIT License
108 stars 28 forks source link

Busted syntax: function brackets in string break highlighting #20

Closed ghost closed 7 years ago

ghost commented 8 years ago

If I write a Busted test like this:

describe("foo()", function ()
    local bar = 123
end)

The syntax highlighting is wrong after the string foo().

screen shot 2016-03-02 at 3 12 06 am

ghost commented 7 years ago

That is strange ... something about the combination of the brackets in the string and the inline function definition is making Sublime wig out (and it's the Corona Lua syntax definition; the default Lua syntax definition doesn't have the issue).

You can workaround the problem by adding a newline:

describe("foo()", 
    function ()
        local bar = 123
    end)
ghost commented 7 years ago

This is fixed in release 1.7.0