Skip to content

Conversation

@AbelToy
Copy link

@AbelToy AbelToy commented Aug 16, 2025

Supports parsing Luau definition files, as used by luau-analyze or luau-lsp.

Gated by LuaVersion::luau_with_declarations()

  • Global variables: declare variable: Type
  • Global functions: declare function globalFunction(a: number)
  • Global types:
declare class Foo
    member: string
    [number]: string
end

declare extern type Bar extends Foo with
    function method(self, baz: string)
end

Closes #335

@AbelToy
Copy link
Author

AbelToy commented Aug 16, 2025

Clippy seems to be failing on unrelated code because of Rust 1.89's new lifetime syntaxes lint.

Do let me know if I need to do anything on my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support parsing Luau definition files

1 participant