Add code block around above paste and removed `` from in front of the comment lines. Probably better to paste your exact file in between the `ini` code block I added.
To me it looks like it's detecting as shell script (though can't be sure, as @elextr said, your screenshots don't show the statusbar where it tells the file type). I suspect that probably your complex Bash script is tripping up the simplistic shell script lexer, though will need to see the status bar to be sure.