diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2025-05-25 21:15:37 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2025-05-25 21:15:37 -0700 |
commit | 8cadbc12494bda7ea81ea112ce8ba2403909d76e (patch) | |
tree | 5c0faaf982662a72d65fd3fae0fd8b24a9dd01ea | |
parent | b0318e9910c09086a6249fdaf9251f8587a8ecd1 (diff) | |
download | txr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 '[': |