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 support for .mojo filename extension #253

Open
SimplyYummy opened this issue Sep 19, 2023 · 1 comment
Open

Add support for .mojo filename extension #253

SimplyYummy opened this issue Sep 19, 2023 · 1 comment

Comments

@SimplyYummy
Copy link

SimplyYummy commented Sep 19, 2023

Thanks for this great and awesome app. Can we get .mojo and .🔥 extensions for mojo files supported?

It isn't currently supported at the moment as its a new language that's a superset of python. Currently there is no preview when using quicklook, which is expected as its a new programming language.

  1. Website for mojo language: https://docs.modular.com/mojo/

  2. Mojo's official syntax highlighting: https://github.com/modularml/mojo-syntax

  3. Converted syntax to tmLanguage if it helps: https://github.com/SimplyYummy/Modular-Mojo-Syntax-Highlighting/blob/main/mojo.syntax.tmLanguage

Running mdls -name kMDItemContentType -name kMDItemContentTypeTree filename.mojo shows the below:

kMDItemContentType     = "com.coteditor.mojo"
kMDItemContentTypeTree = (
    "com.coteditor.mojo",
    "public.source-code",
    "public.plain-text",
    "public.text",
    "public.data",
    "public.item",
    "public.content"
)

And the output from Inquiry window in Syntax Highlighter.app:

Screenshot mojo extension

@sbarex
Copy link
Owner

sbarex commented Jun 4, 2024

Sorry, but mojo is not handled by the rendering engine Highlight, that is not compatible with the tmLanguage format.

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

No branches or pull requests

2 participants