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

Add mlir support in code editor #3578

Open
superlopuh opened this issue Jan 26, 2025 · 0 comments
Open

Add mlir support in code editor #3578

superlopuh opened this issue Jan 26, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@superlopuh
Copy link

Description

Would it be possible to include syntax highlighting for MLIR? Or maybe there's a hook to provide the grammar as a dependency?

https://github.com/artagnon/tree-sitter-mlir

There's a partial implementation here, it would make our code snippets more beautiful in the notebooks.

Suggested solution

Either include "mlir" in the list of languages or add a way for users to provide their own syntax colouring.

Here's the API Textual uses to add custom languages for their TextArea class: https://textual.textualize.io/widgets/text_area/#adding-support-for-custom-languages

Alternative

No response

Additional context

No response

@superlopuh superlopuh added the enhancement New feature or request label Jan 26, 2025
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

1 participant