You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 13, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 13, 2024. It is now read-only.
Q: Extending it to be usable as a lexer template #69
I am currently trying to add a lexer class to the plugin pack so that it can be used to write lexers in C#.
The additional exports needed have been added in UnmanagedExports.cs.
The problem I face is that the methods in the ILexer class are garbage collected.
But from what I have read, static classes or static members of a class should not be garbage collected.
Any idea? Sorry, I am very new to C#.
Btw. My current declaration of the class is different from what is available on github and looks like this.
@Ekopalypse is it newly added to scintilla interface definitions, if so the ILexer class doesn't need to be added manually, instead there is a generator script which updates the C# file, that needs to be run.
We can re-run the generator to update C# scintilla interface. Please let us know.
@mahee96
No, it is not new, I assume the ILexer interface is about as old as scintilla itself.
I assume you are talking about the scintilla.iface file, which is used to describe the scintilla interface.
If that is the case, then no, ILexer is not defined there, it is defined in ILexer.h. The only reference
in scintilla.iface is the call SetILexer which would be used to set an external lexer.
As far as I can see, the ILexer interface is not wrapped by the PluginPack.
Activity
omid99visual commentedon May 21, 2021
What is it ILexer?
Ekopalypse commentedon May 21, 2021
A wrapper to the C++ Interface provided by scintilla.
mahee96 commentedon May 23, 2021
@Ekopalypse is it newly added to scintilla interface definitions, if so the ILexer class doesn't need to be added manually, instead there is a generator script which updates the C# file, that needs to be run.
We can re-run the generator to update C# scintilla interface. Please let us know.
Ekopalypse commentedon May 23, 2021
@mahee96
No, it is not new, I assume the ILexer interface is about as old as scintilla itself.
I assume you are talking about the scintilla.iface file, which is used to describe the scintilla interface.
If that is the case, then no, ILexer is not defined there, it is defined in ILexer.h. The only reference
in scintilla.iface is the call SetILexer which would be used to set an external lexer.
As far as I can see, the ILexer interface is not wrapped by the PluginPack.