This PR is to fix a crash
Not really, it's possible it does but that wasn't the main reason.
if changes are not pushed upstream then Geany will permanently diverge again
Parsing the first identifier after `type` is already a divergence. ATM I'm not confident of its correct parsing, this pull just makes geany see the tag differently.