<blockquote>
<p>Hehe <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji> I gave COBOL a little try, but it now it seems a lot more of a nightmare to do it right (from what I gathered, not only the official syntax uses a pretty random notation, but it also seem close to impossible to parse without knowing every single bit of it -- e.g. it's not easy to locate "statements" or alike). But well… I'll still try and find a way.</p>
</blockquote>
<p>If you really insist on having this fun, couldn't you just use the readLineFromInputFile() ctags interface and more or less only simulate the regex expressions from the existing regex parser (without actually having to learn how the language looks like)?</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/pull/2018#issuecomment-454137807">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJwV1ab5qmTXgySZVD1w_C08w7Ccjks5vDN9SgaJpZM4ZXOnd">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ8KS9U0wXWEY2gmqLrqbIGlre0ZGks5vDN9SgaJpZM4ZXOnd.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@techee in #2018: \u003e Hehe ðŸ˜„ I gave COBOL a little try, but it now it seems a lot more of a nightmare to do it right (from what I gathered, not only the official syntax uses a pretty random notation, but it also seem close to impossible to parse without knowing every single bit of it -- e.g. it's not easy to locate \"statements\" or alike). But well… I'll still try and find a way.\r\n\r\nIf you really insist on having this fun, couldn't you just use the readLineFromInputFile() ctags interface and more or less only simulate the regex expressions from the existing regex parser (without actually having to learn how the language looks like)?"}],"action":{"name":"View Pull Request","url":"https://github.com/geany/geany/pull/2018#issuecomment-454137807"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2018#issuecomment-454137807",
"url": "https://github.com/geany/geany/pull/2018#issuecomment-454137807",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>