• Welcome to Theos PowerBasic Museum 2017.


Attachments are only available to registered users.
Please register using your full, real name.

Main Menu

Scintilla Keywords

Started by Norm Cook, April 17, 2014, 02:53:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Norm Cook

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)

José Roca

% is an operator, and operators are treated separately. If you want to change the beahavior, you will need to write your own lexer.