Files starting with `##` are always detected as Matlab files
When a file has no ending and the first two letters are ##
, it’s always detected and syntax-highlighted as a Matlab file.
I remember having that issue since about three to four years in Fedora. I don’t understand how not even adding an extension alters the context-type
.
Here with a file, purely consisting of ##
:
> gio info <FILE> | rg content
standard::content-type: text/x-matlab
standard::fast-content-type: application/octet-stream
● ostree://fedora-workstation:fedora/30/x86_64/silverblue
Version: 30.20190526.0 (2019-05-26T00:57:40Z)
BaseCommit: 07e572775549662d109b718a7be0ee985293d396721636f0698de7aa332ff126
GPGSignature: Valid signature by F1D8EC98F241AAF20DF69420EF3C111FCFC659B9
RemovedBasePackages: gnome-terminal-nautilus-3.32.2-1.fc30.x86_64
gnome-classic-session-3.32.1-1.fc30.noarch
gnome-shell-extension-launch-new-instance-3.32.1-1.fc30.noarch
gnome-shell-extension-apps-menu-3.32.1-1.fc30.noarch
gnome-shell-extension-window-list-3.32.1-1.fc30.noarch
gnome-shell-extension-places-menu-3.32.1-1.fc30.noarch
LayeredPackages: aeskulap android-tools ansible baobab bat borgbackup chromium cryfs
dconf-editor easytag exa fedora-workstation-repositories ffmpeg file-roller
file-roller-nautilus firefox-wayland fuse-exfat gnome-encfs-manager
gnome-shell-extension-auto-move-windows gnome-shell-extension-dash-to-dock
gnome-shell-extension-gsconnect gnome-shell-extension-suspend-button
gnome-shell-extension-topicons-plus gnome-shell-extension-user-theme
gnome-tweaks gnome-usage gpick hack-fonts htop iftop julia
linux-libertine-biolinum-fonts linux-libertine-fonts neovim open-sans-fonts
powerline-go pv ripgrep setroubleshoot sirikali tilix tilix-nautilus tmux
xenlism-wildfire xenlism-wildfire-midnight youtube-dl
LocalPackages: rpmfusion-nonfree-release-30-0.2.noarch rpmfusion-free-release-30-0.2.noarch
Edited by Frank Brütting