orbitalquark / scintillua

Scintillua enables Scintilla lexers to be written in Lua, particularly using LPeg. It can also be used as a standalone Lua library for syntax highlighting support.
https://orbitalquark.github.io/scintillua
MIT License
52 stars 22 forks source link

Can't disable Lua lexer through properties #54

Closed ittegrat closed 2 years ago

ittegrat commented 3 years ago

With Scintillua installed in SciTE (Sc1, single file), I can't disable a Lua lexer resetting the property lexer.$(file.patterns.name)=name to the original lexilla lexer. It seems to me that a recent commit in lexilla https://github.com/ScintillaOrg/lexilla/commit/e4817a112aca6fbf51a513d5d477c6eea7000b63 breaks the Scintillua behavior and a default Lua lexer is always created and set after been called by Lexilla::MakeLexer. Any suggestions on how to get around this ?

orbitalquark commented 3 years ago

I cannot think of a way to get around this other than removing or renaming lexers/lua.lua.

orbitalquark commented 2 years ago

I'm going to close this because it's a special case of using the statically linked version of SciTE that does not have lexer namespacing. This is ultimately a SciTE/Lexilla issue, not a Scintillua issue because it simply uses the tools Lexilla provides.