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

Improved syntax highlighting for types with "where" in hovers #8

Open
filiptibell opened this issue Oct 2, 2023 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@filiptibell
Copy link

Generic types in hovers sometimes get expanded like this:

local foo: t2 where t1 = {
    Connect: (self: t1) -> boolean,
    Destroy: (self: t1) -> boolean,
    Disconnect: (self: t1) -> boolean
} ; t2 = {
    Bar: t1,
}

It seems like the where breaks syntax highlighting here

@JohnnyMorganz JohnnyMorganz added the enhancement New feature or request label Oct 14, 2023
@JohnnyMorganz
Copy link
Owner

This syntax is somewhat annoying. Contributions welcome in https://github.com/JohnnyMorganz/Luau.tmLanguage to support it

@JohnnyMorganz JohnnyMorganz added help wanted Extra attention is needed good first issue Good for newcomers labels Nov 18, 2023
@JohnnyMorganz JohnnyMorganz removed help wanted Extra attention is needed good first issue Good for newcomers labels Mar 17, 2024
@JohnnyMorganz JohnnyMorganz transferred this issue from JohnnyMorganz/luau-lsp Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants