Also, the Pascal ctags parser used to crash (in 1.38 which you are using) because of https://github.com/geany/geany/issues/3127 which is fixed now. Since in this case you are setting Pascal filetype for a Basic file, the Pascal ctags parser will be very confused by the input (still, it shouldn't crash).
@Poikilos You could probably test if it's this problem by removing the word `type` from line 16 of the file you submitted and re-trying the steps above on the modified file. If it's this issue, you shouldn't be able to reproduce the crash when there's no `type` word in the file.