mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-26 15:54:59 +00:00
Add support for additional cmd_identifiers ##newshell (#17696)
This commit is contained in:
parent
78e30b3ac7
commit
ac6bdc1e7e
@ -264,3 +264,25 @@ Pointer type commands with substitution
|
||||
(arg (cmd_substitution_arg
|
||||
(arged_command (cmd_identifier)
|
||||
(args (arg (arg_identifier))))))))))
|
||||
|
||||
========
|
||||
editor -
|
||||
========
|
||||
|
||||
-
|
||||
|
||||
---
|
||||
|
||||
(commands
|
||||
(arged_command (cmd_identifier)))
|
||||
|
||||
=========
|
||||
\ command
|
||||
=========
|
||||
|
||||
\
|
||||
|
||||
---
|
||||
|
||||
(commands
|
||||
(arged_command (cmd_identifier)))
|
||||
|
@ -46,14 +46,14 @@ static bool is_comment(const char *s) {
|
||||
}
|
||||
|
||||
static bool is_special_start(const int32_t ch) {
|
||||
return ch == '*' || ch == '(' || ch == '*' || ch == '@' || ch == '|' ||
|
||||
ch == '.' || ch == '|' || ch == '%' || ch == '~' || ch == '&' ||
|
||||
ch == '>';
|
||||
return ch == '*' || ch == '(' || ch == '@' || ch == '|' || ch == '>' ||
|
||||
ch == '.' || ch == '|' || ch == '%' || ch == '~' || ch == '&';
|
||||
}
|
||||
|
||||
static bool is_start_of_command(const int32_t ch) {
|
||||
return isalpha (ch) || ch == '$' || ch == '?' || ch == ':' || ch == '+' ||
|
||||
ch == '=' || ch == '/' || ch == '_' || ch == '#' || is_special_start (ch);
|
||||
ch == '=' || ch == '/' || ch == '_' || ch == '#' || ch == '\\' ||
|
||||
ch == '-' || is_special_start (ch);
|
||||
}
|
||||
|
||||
static bool is_mid_command(const char *res, int len, const int32_t ch) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user