zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.51k stars 3.13k forks source link

Add syntax highlighting for `.conf` files #10123

Open VKondakoff opened 7 months ago

VKondakoff commented 7 months ago

Check for existing issues

Describe the feature

Currently there is no syntax highlighting for .conf files:

Снимок экрана 2024-04-03 в 16 55 12

Zed: v0.129.1 (Zed Preview) OS: macOS 12.7.4 Memory: 32 GiB Architecture: x86_64

If applicable, add mockups / screenshots to help present your vision of the feature

No response

jansol commented 7 months ago

I don't think there even is any somewhat universally agreed-on definition for .conf syntax?

VKondakoff commented 7 months ago

HOCON? https://docs.spongepowered.org/stable/en/server/getting-started/configuration/hocon.html

jansol commented 7 months ago

That's a definition, yeah. Not to be confused with

Point being that .conf is such a generic suffix that it is meaningless out of context. And even when the format looks vaguely like something standard, it tends to have application-specific quirks more often than not. I'm not saying this is a futile endeavor that should be abandoned, but it needs to be a lot more specific than just the file suffix.

jncsotk30 commented 3 months ago

Is it possible to assign a default language for the .conf file type? I personally would just use Plain since there hasn't been a standard created for it.