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

Incorrect type hint highlighting for final #41

Closed
Gama11 opened this issue May 18, 2018 · 1 comment
Closed

Incorrect type hint highlighting for final #41

Gama11 opened this issue May 18, 2018 · 1 comment
Labels

Comments

@Gama11
Copy link
Member

Gama11 commented May 18, 2018

class Foo {
	final foo:(bar:Int) -> Void;
	var foo:(bar:Int) -> Void;
}
@Gama11 Gama11 added the bug label May 18, 2018
@Gama11
Copy link
Member Author

Gama11 commented May 18, 2018

This is actually not as simple a fix as I thought, since final is also a valid method modifier - I think this can only be done with some lookahead-hackery, which means that comments or conditionals right after the final modifier won't be highlighted.

@Gama11 Gama11 closed this as completed in 0feb1c3 May 18, 2018
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

1 participant