summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2025-05-25 21:15:37 -0700
committerKaz Kylheku <kaz@kylheku.com>2025-05-25 21:15:37 -0700
commit8cadbc12494bda7ea81ea112ce8ba2403909d76e (patch)
tree5c0faaf982662a72d65fd3fae0fd8b24a9dd01ea
parentb0318e9910c09086a6249fdaf9251f8587a8ecd1 (diff)
downloadtxr-8cadbc12494bda7ea81ea112ce8ba2403909d76e.tar.gz
txr-8cadbc12494bda7ea81ea112ce8ba2403909d76e.tar.bz2
txr-8cadbc12494bda7ea81ea112ce8ba2403909d76e.zip
repl: regression: not completing keywords.
This was broken on May 18, 2021 by commit ade5f33b12edce9b707a6038bf630d459f78212, subject line: "listener: don't complete on unbound symbols". * parser.c (find_matching_syms): If the symbol is a keyword, do not require it to have binding.
-rw-r--r--parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index 18c127fe..cc910d83 100644
--- a/parser.c
+++ b/parser.c
@@ -1169,7 +1169,7 @@ static void find_matching_syms(lino_completions_t *cpl,
break;
/* fallthrough */
default:
- if (find_struct_type(sym) || ffi_type_p(sym))
+ if (keywordp(sym) || find_struct_type(sym) || ffi_type_p(sym))
break;
/* fallthrough */
case '[':