• Welcome to Powerbasic Museum 2020-B.
 

News:

Forum in repository mode. No new members allowed.

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.