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

Broken syntax highlighting and auto-indentation when using python3.12 generics syntax #8974

Closed
ontley opened this issue Dec 2, 2023 · 2 comments · Fixed by #8976
Closed
Labels
A-tree-sitter Area: Tree-sitter C-bug Category: This is a bug upstream

Comments

@ontley
Copy link
Contributor

ontley commented Dec 2, 2023

Summary

image

Minor bug,

When using the class Foo[T]: syntax in python3.12, syntax highlighting is broken on the first method, and auto-indentation is broken on every method.

I'm guessing this has to do with grammars

Reproduction Steps

No response

Helix log

No response

Platform

Linux

Terminal Emulator

kitty 0.31.0

Installation Method

pacman

Helix Version

helix 23.10

@ontley ontley added the C-bug Category: This is a bug label Dec 2, 2023
@dead10ck
Copy link
Member

dead10ck commented Dec 3, 2023

Yeah this is almost certainly because the grammar has not added these new features.

@dead10ck
Copy link
Member

dead10ck commented Dec 3, 2023

Looks like it's already been fixed upstream, we just need to update the grammar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tree-sitter Area: Tree-sitter C-bug Category: This is a bug upstream
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants