Re: Cannot load a lexer
Neil Hodgson <[email protected]> Fri, 12 Dec 2025 15:29:08 +1100
| Newsgroups | gmane.comp.lib.scintilla.devel |
|---|---|
| Message-ID | <CACWkrThosevQd-LxMR1j7zthLXBpJw9EYa9LoxWTZ6Ph1m_o=A@mail.gmail.com> |
Roger Tunnicliffe:
> The following code returns pLexer but SETILEXER always returns a 0.
SCI_SETILEXER does not return anything. There aren't even any checks
on that call, Scintilla just stores the value given.
https://scintilla.org/ScintillaDoc.html#SCI_SETILEXER
> Dim pLexer As Any Ptr = CreateLexer("freebasic")
Good. Check for NULL.
> Dim result As ULong = scintilla_send_message(sci, SCI_GETLEXER, 0, pLexer)
SCI_GETLEXER doesn't take any arguments. At this point it will likely
return something boring like 0.
> CONST SCI_SETILEXER As UInteger = 2187
From Scintilla.h:
#define SCI_SETILEXER 4033
2187 is not associated with lexing:
#define SCI_GETOVERTYPE 2187
Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/scintilla-interest/CACWkrThosevQd-LxMR1j7zthLXBpJw9EYa9LoxWTZ6Ph1m_o%3DA%40mail.gmail.com.