Putting it back on the ML. Fulvio, do not reply to individuals, reply to the list.
On Sat, 13 Apr 2024 at 16:02, Lex Trotman elextr@gmail.com wrote:
On Sat, 13 Apr 2024 at 13:51, Fulvio full.the.saint@gmail.com wrote:
Il giorno ven, 12/04/2024 alle 18.59 +1000, Lex Trotman ha scritto:
Good, that will make them available for examination on any device with a browser, eg a phone or a tablet where unzipping isn't readily available.
I make the files available to see in a plain format at https://github.com/Fulvio57/DataShare
Any review is very appreciated.
Freebasic is case insensitive Dim == dim == diM so the lexer converts all identifiers to lower case before comparing to the word lists, so for this language all your wordlists need to be in lower case, then they are recognised. (hint select the wordlist, Edit->Format->Toggle Case of selection)
The name of your language is Pbasic but the entry in filetype_extensions.conf uses PBasic, they must be identical.
Cheers Lex
Fulvio
Il giorno sab, 13/04/2024 alle 16.41 +1000, Lex Trotman via Users ha scritto:
The name of your language is Pbasic but the entry in filetype_extensions.conf uses PBasic, they must be identical.
I spotted this previously, but I think I published an old file. I've seen a better results after correcting. I should look for a disctintion because it seems that not all the keywords are highlighted.
Fulvio
PS. Sorry about confusing the mailist and the private emails. I correct mi mailer.
On Sat, 13 Apr 2024 at 20:15, Fulvio via Users users@lists.geany.org wrote:
Il giorno sab, 13/04/2024 alle 16.41 +1000, Lex Trotman via Users ha scritto:
The name of your language is Pbasic but the entry in filetype_extensions.conf uses PBasic, they must be identical.
I spotted this previously, but I think I published an old file. I've seen a better results after correcting. I should look for a disctintion because it seems that not all the keywords are highlighted.
Many of the words in your wordlists contain characters that the freebasic lexer may not accept as part of an identifier.
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.
Since only the identifier part is compared to the words list the list members with errant characters will never be found. This appears to be a limitation of the freebasic lexer.
Cheers Lex
Fulvio
PS. Sorry about confusing the mailist and the private emails. I correct mi mailer.
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Il giorno sab, 13/04/2024 alle 21.13 +1000, Lex Trotman via Users ha scritto:
Many of the words in your wordlists contain characters that the freebasic lexer may not accept as part of an identifier.
I understand. Maybe there no lexer that will accept those characters. I just accept the result as good as it comes. I have to learn how to upload the corrections to GitHub. I need some more time to grasp the git mechanism.
Fulvio
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