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
originand another calledworld-origin. (MyEnvironmenttag includesadditionalWordChars="-"/) If you start typingworld-origin, AC properly offers the whole word. After you type a parenthesis, however, the call tip fororiginis 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-groundand 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).
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login