The problem is caused by the often used "[exec magic](http://wiki.tcl.tk/812)" in the beginning of the file. This looks like this:
`#!/bin/bash` `# the next line restarts using wish ` `exec wish "$0" "$@"`
So Geany thinks, it is a bash script. And I think it is OK this way...