Powerbasic Museum 2020-B

Webmaster: José Roca (PBWIN 10+/PBCC 6+) (SDK Forum) => CSED Editor => Topic started by: Norm Cook on April 17, 2014, 02:53:00 PM

Title: Scintilla Keywords
Post by: Norm Cook on April 17, 2014, 02:53:00 PM
Hope this is the right place to post this.
Scintilla recognizes #Compile as a keyword,
but not %WM_InitDialog. i. e. the character # is
OK but not %.

I have included the lines

Local Chars As String
Chars = "#$_%@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"

SciMsg pSci, %SCI_SETWORDCHARS, 0, StrPtr(Chars)
Title: Re: Scintilla Keywords
Post by: José Roca on April 17, 2014, 07:21:36 PM
% is an operator, and operators are treated separately. If you want to change the beahavior, you will need to write your own lexer.