The syntax file that another person and I are creating is for a language (Procomm's ASPECT scripting language) that has some keywords that can be both a command and also an argument to a command. An example is:
beep, which plays the default Window beep
and
sdlgmsgbox title string icon button intvar [integer] [BEEP], which displays a standard dialog box with beep as an optional parameter.
The syntax file I've created has commands in one keyword section, system variables in a second, and predefined variables in a third section. In the fourth and final keyword section, I've listed all of the arguments to the commands listed in the Keywords 1 section.
When I view my source files with syntax highlighting on, a keyword that is in both Keywords 1 and Keywords 4 is highlighted with the color associated with Keywords 4. Is there any trick or rude hack to differentiate between the two keyword sections? I'm thinking not, but thought someone else might have an idea.
FYI, this is with version 4.4.2. I didn't realize that version 4.5 was available until tonight and am downloading it now.
Possible to have same keyword in different keyword sections
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
Roy Beatty
Re: Possible to have same keyword in different keyword secti
Hmm, I don't know much about syntax highlighting --you might try swapping the first and fourth sets of keywords. Or might these regular expressions work?<br>
[^[]beep<br>
[beep
I'll defer to others...
Roy
[^[]beep<br>
[beep
I'll defer to others...
Roy