Autocomplete to properly recognize keywords with dash
-
While trying to configure a large set of autocomplete rules, I found the following. Say you have a function name
origin
and another calledworld-origin
. (MyEnvironment
tag includesadditionalWordChars="-"/
) If you start typingworld-origin
, AC properly offers the whole word. After you type a parenthesis, however, the call tip fororigin
is shown. I guess when the calltip is called, it only parses the string back to the last.Here’s what I have:
<Environment ignoreCase="no" startFunc="(" stopFunc=")" paramSeparator="," terminal=";" additionalWordChars="-"/> ... <KeyWord name="origin" func="yes"> <Overload retVal="" descr="Obsolete tag https://online.ts2009.com/mediaWiki/index.php/KIND_Traincar" /> <Overload retVal="string" descr="The Country Abbreviation. " /> </KeyWord> ... <KeyWord name="world-origin" func="yes"> <Overload retVal="float list" descr="latitude, longitude, and altitude"> </Overload> </KeyWord>
And this is what I get:
Can I do something to force NP++ to make it think the dash is part of the keyword name, just as with the autocomplete list?
-
In addition, if I have a keyword with a last tag that does not match a full keyword, I get no calltip. For example, I defined the keyword
adjust-cross-section-to-ground
and I don’t have a keywordground
, therefore I don’t get any calltip foradjust-cross-section-to-ground
(however it appears in the autocomplete list).