<p>Geany has implemented reading an identifier after the <code>type</code> keyword for Pascal, but it creates a function tag. I've made <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="507402857" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/2360" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/2360/hovercard" href="https://github.com/geany/geany/pull/2360">#2360</a> to create a type tag instead.</p>
<p>Because it currently creates a function tag, I think this bug may occur the same if you replace the <code>type</code> keyword with <code>function</code>. On my system, a tag is not created when there is a space before the <code>{}</code> comment, but it doesn't crash.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2358?email_source=notifications&email_token=AAIOWJYJDSAQRUPLG3OD6M3QOYCV5A5CNFSM4JAUZXV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBJXSMA#issuecomment-542341424">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ2LNFAOIOFXKUVCUXDQOYCV5ANCNFSM4JAUZXVQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ77M4TLEJRZ2DP23K3QOYCV5A5CNFSM4JAUZXV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBJXSMA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2358?email_source=notifications\u0026email_token=AAIOWJYJDSAQRUPLG3OD6M3QOYCV5A5CNFSM4JAUZXV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBJXSMA#issuecomment-542341424",
"url": "https://github.com/geany/geany/issues/2358?email_source=notifications\u0026email_token=AAIOWJYJDSAQRUPLG3OD6M3QOYCV5A5CNFSM4JAUZXV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBJXSMA#issuecomment-542341424",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>