gEdit miss color highliting of bash commands
While using gEdit 41.0 in Ubuntu Jammy 22.04 I see that as some point gEdit quits recognizing and hilighting bash commands while editing a file. That was not the case in previous versions of Ubuntu I used like Xenial 16.04 and Focal 20.04.
here is a portion of the code which is missing color hilighting of bash commands.
if (([ $hour -ge 4 ] && [ $mn -gt 15 ] && [ $(date +%p) = 'PM' ]) || \
([ $hour -ge 5 ] && [ $(date +%p) = 'PM' ])) && !(([ $hour -eq 12 ]) && ([ $( date +%p) = 'PM' ])); then
# We have access to Monday's End of Day's quotes and remove the hour mn
echo "--> $day's Close"
date_stock_price=$(date +%m.%d.%Y)
end_of_day=true
else
# "We have access to Monday's Intraday quotes and need the hour mn"
echo "--> $day's Intraday"
date_stock_price=$(date +%m.%d.%Y_%I:%M%p)
end_of_day=false
fi
The first then isn't recognize as a command and right after only $(date ..) is recognized. variables are not recognized either.
As well ' and " are interpreted as code while they are behind a # comment line start ...
That was working before, but no more.
Edited by Pascal Mons