Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[completion] Rewrite completion using the actual OSH lexer and parser!
We're making use of parse_ctx.comp_state. - The variable name completion is much more accurate now. It handles $, ${, $P, and ${P, and the variable doesn't have to start a word (unlike in bash). - Add EmitCompDummy() to the lexer. PushHint() wasn't right because echo $(<TAB> didn't work. - Add unit test infrastructure to simulate what readline does with set_completer_delims(). - Get rid of more than one old hacky mechanism for completion.
- Loading branch information