back to scratko.xyz
summaryrefslogtreecommitdiff
path: root/lexical_analysis.h
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-06-20 18:38:11 +0300
committerscratko <m@scratko.xyz>2024-06-23 23:25:46 +0300
commit74c6a747a58b38131534556ab95fa4dd4b514780 (patch)
tree68dae86f9ee994c2bc13681703a8c69e0e2b5f51 /lexical_analysis.h
parent8f4f87eabec13330a2b3a974975053c1e4632a11 (diff)
downloadshell-edit.tar.gz
shell-edit.tar.bz2
shell-edit.zip
Shell-edit releaseshell-edit
Autocomplete program and file names (tab). Moving the cursor to edit commands (left and right arrows). Deleting a character in a command (backspace).
Diffstat (limited to 'lexical_analysis.h')
-rw-r--r--lexical_analysis.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lexical_analysis.h b/lexical_analysis.h
index 3266ad7..9d7d556 100644
--- a/lexical_analysis.h
+++ b/lexical_analysis.h
@@ -2,6 +2,7 @@
#define LEXICAL_ANALYSIS_H_SENTRY
#include "shell.h"
+#include "readline.h"
int is_double_quotes_pair(struct param_type params);
int escape_double_quotes_or_backslash(int ch, struct param_type params);
@@ -26,7 +27,8 @@ int is_double_token(struct param_type *params);
int stream_redirect_tokens(struct w_queue *word_chain,
struct dynamic_array *tmp_word,
- int ch, struct param_type *params);
+ int ch, struct param_type *params,
+ struct readline_type *readline);
int double_quotes_again(int ch, struct param_type params);
@@ -37,6 +39,6 @@ int pipeline_token_processing(struct w_queue *word_chain,
int special_tokens(struct w_queue *word_chain, struct c_queue *cmdlines,
struct dynamic_array *tmp_word, int ch,
- struct param_type *params);
+ struct param_type *params, struct readline_type *readline);
#endif