Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Busted syntax: function brackets in string break highlighting #20

Closed
ghost opened this issue Mar 2, 2016 · 2 comments
Closed

Busted syntax: function brackets in string break highlighting #20

ghost opened this issue Mar 2, 2016 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Mar 2, 2016

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
Copy link

ghost commented Dec 29, 2016

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 ghost self-assigned this Dec 29, 2016
@ghost ghost added the bug label Dec 29, 2016
@ghost
Copy link

ghost commented Sep 26, 2017

This is fixed in release 1.7.0

@ghost ghost closed this as completed Sep 26, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants