From 8cadbc12494bda7ea81ea112ce8ba2403909d76e Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 25 May 2025 21:15:37 -0700 Subject: 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. --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 '[': -- cgit v1.2.3