Hello,
Since my new language is quite basic-like, I was hoping to expedite the process of adding support by copying vbscript.e to basicLike.e, and adjusting as necessary. I have also copied the VB section from vslick.vlx into basicLike.vlx, and load that in basicLike.e.
Generally, the support is working; I have removed support for tokens my language doesn't have, and added tokens my language does.
However, I have run in to a problem with 'Define', as in:
Define monster 666
I have added 'Global' as a keyword for a variable, and those variables are getting tagged.
Global witch as String
I can't figure out how to get 'Define' tokens recognized, though. I suspect that 'define' already has some sort of meaning in vbscript.e, but I can't figure out where it is used.
Any help would be appreciated...
UPDATE:
I think the problem is in lang_proc_search():
_str signature_re='[ \t]*([(]{#1[^)]*}[)_][ \t]*|)(as[ \t]*{#2'variable_re'}|=|$)';
I suspect I have to accommodate, in this regex, the 'define' syntax.
UPDATE_2:
Attempt to make the 'as' optional:
#define LANG_WORD_CHARS 'a-zA-Z0-9_$'
_str signature_re='[ \t]*([(]{#1[^)]*}[)_][ \t]*|)((as[ \t]*{#2'variable_re'}|=|$)|([ \t]*['LANG_WORD_CHARS']*))';
This tags correctly:
Define Move 1
Sub Move()
but does not tag:
Define Move_To 1
Sub Move_To()
In the Defs toolbar,
Define IDS_STRING_1 1
appears as:
IDS