lite-xl / lite-xl-plugins

Plugins for the Lite XL editor
MIT License
388 stars 101 forks source link

Some issues with `language_sh` #469

Open Samueru-sama opened 3 months ago

Samueru-sama commented 3 months ago

For example, here is part of the AppRun script of the suyu appimage:

image

Removing the -e flag from the sheabang fixes the issue.

image

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

Samueru-sama commented 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:

image

deleting said line fixes the highlight issue in the functions.

image

EDIT3 FIXED