<p></p>
<p>Yeah, I have only had a quick look, but setting lexers by ID is no longer even supported, needs the <code>ilexer5*</code> pointer AFAICT.  Thats awkward with the big switches in <code>highlighting.c</code>.  Maybe as you said we can map from id to name to pointer and fill that in using <code>LexerNameFromID()</code> and <code>CreateLexer()</code> for now, but in the longer term probably need to store the name of the lexer and our internal id (for the switches) in the filetype struct and use that instead of SCILEX_* IDs.</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/2824#issuecomment-899364796">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJYV6COO6G4KPYY62Z3T5DK57ANCNFSM46PSNJLA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email">Android</a>.<img src="https://github.com/notifications/beacon/AAIOWJ6FARXQQWKFQM4FWX3T5DK57A5CNFSM46PSNJLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGWNTPPA.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/2824#issuecomment-899364796",
"url": "https://github.com/geany/geany/issues/2824#issuecomment-899364796",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>