Geany has implemented reading an identifier after the `type` keyword for Pascal, but it creates a function tag. I've made #2360 to create a type tag instead.
Because it currently creates a function tag, I think this bug may occur the same if you replace the `type` keyword with `function`. On my system, a tag is not created when there is a space before the `{}` comment, but it doesn't crash.