zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.4k stars 1.16k forks source link

.desktop file semicolon syntax coloring #3365

Open RealAprilF00lz opened 5 days ago

RealAprilF00lz commented 5 days ago

I went into a .desktop file (/usr/share/applications/yelp.desktop) with Micro and saw that everything after the first semicolon in a list separated by semicolons was colored the same as comments. Was the same in other .desktop files in the directory. Doesn't happen in Nano. Is this intentional?

Commit hash: 2.0.13 OS: Ubuntu 24.04 LTS Terminal: GNOME Terminal Screenshot from 2024-07-01 07-46-39

Andriamanitra commented 5 days ago

The reason for this is that .desktop files currently use the built-in .ini syntax highlighting by default. I've been using a custom syntax file for .desktop files to give them nicer highlighting: https://github.com/Andriamanitra/dotfiles/blob/main/micro/.config/micro/syntax/desktop.yaml