Il giorno sab, 13/04/2024 alle 21.13 +1000, Lex Trotman via Users ha scritto:
AFAICT as a regex its [#a-zA-Z][a-zA-Z0-9_]* so if any of those words you have that start with $ or _ etc occur in the file they will be recognised as an operator followed by an identifier.
I highly appreciated your support in this matter, but I regret to say that I need to look for a different editor. My purpose it to use an editor multiplatform which is light and easy to set the new highlighter. Kate is not acceptable for my Linux, it brings in to many dependencies, because I don't need the KDE-plasma for this 15 years old laptop. Even Kate has the better option with RegEx definitions for the lexer.
Anyways, for Geany, there are probably no lexer that will accept those non alphanumeric characters and "#" as a keyword. I was looking at that in order to get a better chance on implementing my keywords list.
On the other hand, I saw Scintilla site and there's the lexilla library which Geany may depend on. Also SciTE is rather more featured, but I presume that is not the primary scope in Geany. I won't be able to recompile Geany with another basic lexer, such as Blitz-Basic.
Temporarily I will opt for FreeBasic filetype, at least it shows most of the function and variable on the side panel.
--Who will be interested of my attempt will find the files on my repository. Including Kate and Notepad++ --
Fulvio