<p></p>
<p>Highlighting is purely syntactic, anything to be highlighted must be able to be determined purely from syntax, no semantics allowed.</p>
<p>Whilst I don't know Erlang, from your descriptions the examples look like they would require semantic knowledge, eg what a "list" is vs purely a '[' and ']', similarly in your second image your explanation seems to require to know what a "declaration" is.</p>
<p>The highlighter comes from the <a href="www.scintilla.org">Scintilla</a> project, but the version in Geany is a little behind so you could check the latest release of the Scite editor (which uses the same highlighter) from that project and see if its better, but don't be surprised if things requiring semantics are not correct.  However purely syntactic issues you could report to that project (or better provide a patch).</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/2651#issuecomment-724314113">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJY2DPCO3M5WSOGRVETSPBTWHANCNFSM4TPKYFOA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJZLYZSCGLQKVPCNBSDSPBTWHA5CNFSM4TPKYFOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFMWCQAI.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/2651#issuecomment-724314113",
"url": "https://github.com/geany/geany/issues/2651#issuecomment-724314113",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>