Author Topic: Scintilla Keywords  (Read 3056 times)

0 Members and 1 Guest are viewing this topic.

Offline Norm Cook

  • Newbie
  • *
  • Posts: 8
  • User-Rate: +0/-0
Scintilla Keywords
« 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
Code: [Select]
Local Chars As String
 Chars = "#$_%@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"

 SciMsg pSci, %SCI_SETWORDCHARS, 0, StrPtr(Chars)

Offline José Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 2481
  • User-Rate: +204/-0
Re: Scintilla Keywords
« Reply #1 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.