Skip to content

Syntax coloring for just Justfiles #3256

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

Open
ksandvik opened this issue Apr 1, 2025 · 4 comments
Open

Syntax coloring for just Justfiles #3256

ksandvik opened this issue Apr 1, 2025 · 4 comments
Labels
syntax-mapping-request A syntax definition exists but isn't chosen automatically

Comments

@ksandvik
Copy link

ksandvik commented Apr 1, 2025

Syntax coloring for just tool Justfiles. As the files are very much the same syntax as Makefiles you could most likely use the same syntax coloring configs.

@ksandvik ksandvik added the feature-request New feature or request label Apr 1, 2025
@keith-hall keith-hall added syntax-mapping-request A syntax definition exists but isn't chosen automatically and removed feature-request New feature or request labels Apr 2, 2025
@keith-hall
Copy link
Collaborator

Are you sure that using Makefile syntax highlighting rules on Justfiles gives a good quality result? Have you tried? 🙂
I ask because someone has created a separate syntax definition for it, so presumably it must bring some benefits to use a dedicated syntax... https://packagecontrol.io/packages/Just

@ksandvik
Copy link
Author

ksandvik commented Apr 2, 2025

Well, it's a good starting point as most of Justfile syntax follows the Makefile syntax.

@fepegar
Copy link
Contributor

fepegar commented Apr 6, 2025

+1 to adding syntax for justfile|Justfile.
I think a dedicated syntax for Just would be better, instead of the one for Makefile.
I know the popularity of this was not clear two years ago in #2488, but it's growing quickly so hopefully you'll consider accepting the inclusion.

Image

@fepegar
Copy link
Contributor

fepegar commented Apr 6, 2025

Also, here's a small side-by-side comparison of a justfile colored with this VS Code extension (left) and with Makefile syntax, which I think is included in Microsoft's Makefile Tools. Similar, maybe less pretty, but arguably slightly less appropriate, I'd say.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
syntax-mapping-request A syntax definition exists but isn't chosen automatically
Projects
None yet
Development

No branches or pull requests

3 participants