Open Samueru-sama opened 3 months ago
I've discovered that it works if the file is named:
.sh
.bash
.zsh
.zshrc
.fish
however it doesn't work when it is named:
.bashrc
.bash_profile
.profile
.zprofile
(Even after adding it to the files list).
And .zshrc
also doesn't work, however that is because it wasn't added to the list of files, unlike .zprofile
it does work after being added.`
EDIT FIXED
Now all that is left is the issue with the bemoji script.
EDIT2 The issue is caused by line 5 in the script.
bm_db_location=${BEMOJI_DB_LOCATION:-"${XDG_DATA_HOME:-$HOME/.local/share}/bemoji"}
Mousepad with gtksourceview has no problem displaying it as seen here:
deleting said line fixes the highlight issue in the functions.
EDIT3 FIXED
Scripts that start with aFIXED#!/bin/sh -e
don't get recognized and have no highlighting as result.For example, here is part of theAppRun
script of the suyu appimage:Removing the-e
flag from the sheabang fixes the issue.And finally files likeFIXED.bash_profile
,.zprofile
, etc never get hightlited as they normally don't have a sheabang.What's odd is that there is actually support for these files in the script so I don't know why it doesn't work