From 9e101ec36e0bf45f294f63015e0352d1d08d641d Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 23 Mar 2025 18:31:09 +0300 Subject: the ES command (send Scintilla message) now supports passing both wParam and lParam as null-terminated strings * Being able to embed null bytes into the lParam string is practically useless - there aren't any messages where this is useful and where there are no native SciTECO counterparts - so this case is now catched and the null-byte separates wParam from lParam. * wParam can be the empty string, but it is not supported to pass wParam as a string and lParam as the empty string. If the second string argument ends in ^@, lParam is popped from the stack instead. * This is a temporary workaround until we can properly parse the Scintilla.iface and generate more elegant per-message wrappers. * It in particular unlocks the SCI_SETREPRESENTATION and SCI_SETPROPERTY messages. The former allows us to write a special hex-editor macro which sets hexadecimal character representations, while the latter allows you to set lexer properties. * The C-based lexers ("cpp" in Lexilla) can now take preprocessor definitions into account. This is disabled by default, unless you set lexer.c.defines before opening a file. You can also set it interactively and re-set the lexer. For instance: ^U[lexer.c.defines]NDEBUG$ M[lexer.set.c] --- lib/lexers/c.tes | Bin 2440 -> 2705 bytes lib/lexers/cpp.tes | Bin 1279 -> 1410 bytes lib/lexers/devicetree.tes | Bin 612 -> 743 bytes lib/lexers/sciteco.tes | Bin 637 -> 697 bytes 4 files changed, 0 insertions(+), 0 deletions(-) (limited to 'lib/lexers') diff --git a/lib/lexers/c.tes b/lib/lexers/c.tes index c0acea2..0f2b68d 100644 Binary files a/lib/lexers/c.tes and b/lib/lexers/c.tes differ diff --git a/lib/lexers/cpp.tes b/lib/lexers/cpp.tes index 0f6a01a..7ac177f 100644 Binary files a/lib/lexers/cpp.tes and b/lib/lexers/cpp.tes differ diff --git a/lib/lexers/devicetree.tes b/lib/lexers/devicetree.tes index 7551458..da6d876 100644 Binary files a/lib/lexers/devicetree.tes and b/lib/lexers/devicetree.tes differ diff --git a/lib/lexers/sciteco.tes b/lib/lexers/sciteco.tes index ec023d7..7ca9c70 100644 Binary files a/lib/lexers/sciteco.tes and b/lib/lexers/sciteco.tes differ -- cgit v1.2.3