Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some issues with language_sh #469

Open
Samueru-sama opened this issue Jul 29, 2024 · 1 comment
Open

Some issues with language_sh #469

Samueru-sama opened this issue Jul 29, 2024 · 1 comment

Comments

@Samueru-sama
Copy link
Contributor

Samueru-sama commented Jul 29, 2024

  • Scripts that start with a #!/bin/sh -e don't get recognized and have no highlighting as result. FIXED

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

  • And finally files like .bash_profile, .zprofile, etc never get hightlited as they normally don't have a sheabang. FIXED

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
Copy link
Contributor Author

Samueru-sama commented Jul 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant