all repos — min @ 1356a81aea3dd81b46c1e75bdbea31fb4136a3ac

A small but practical concatenative programming language.

Fixed help symbol.
h3rald h3rald@h3rald.com
Sun, 27 Oct 2024 02:43:39 +0200
commit

1356a81aea3dd81b46c1e75bdbea31fb4136a3ac

parent

ddd857863ca4fd4e73719464071d83b17df09c7a

2 files changed, 2 insertions(+), 7 deletions(-)

jump to
M minpkg/lib/min_global.nimminpkg/lib/min_global.nim

@@ -719,13 +719,7 @@ if not sym.doc.isNil and sym.doc.kind == JObject:

foundDoc = true displayDoc(sym.doc) return - var mdl = "" - if s.contains('.'): - let parts = s.split(".") - mdl = parts[0] - s = parts[1] - if HELP["symbols"].hasKey(s) and (mdl == "" or mdl == HELP["symbols"][ - s]["module"].getStr): + if HELP["symbols"].hasKey(s): foundDoc = true displayDoc HELP["symbols"][s] if i.scope.hasSigil(s):
M next-release.mdnext-release.md

@@ -5,4 +5,5 @@

### Fixes and Improvements * Implemented `define-sigil` (was documented but not actually implemented). +* The `help` symbol now correctly displays help for namespaced symbols.