teal-language / vscode-teal

Teal language support for Visual Studio Code
MIT License
76 stars 11 forks source link

Don't autoindent after function types #7

Closed pdesaulniers closed 4 years ago

pdesaulniers commented 4 years ago

Right now, the extension adds a level of indentation when it encounters a function type.

local lume = record -- argh!!
    clamp: function(x: number, min: number, max: number)
        round: function(x: number, increment: number)
            sign: function(x: number)
end

It should only indent when it encounters a function definition.

pdesaulniers commented 4 years ago

Fixed in https://github.com/teal-language/vscode-teal/commit/ec7de9f2b621024fe527a98c1239fd2843524d56, I think.