EmmyLua / IntelliJ-EmmyLua

Lua IDE/Debugger Plugin for IntelliJ IDEA
https://emmylua.github.io
Apache License 2.0
1.74k stars 293 forks source link

Fixed wrong endType symbol in UnmatchedBraceHandler #413

Open pouwelsjochem opened 3 years ago

pouwelsjochem commented 3 years ago

The current handler sometimes entered the wrong endType, this should fix it. Previously the following code would add a '}' instead of end

local test = {
    fun = function()
        if true then[CARET_IS_HERE]

    end
}