aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 2f3a8c3d..1e421085 100644
--- a/parse.c
+++ b/parse.c
@@ -1185,6 +1185,8 @@ PARSER(parse_text) {
} else if (strchr(interp_chars, *pos)) {
open_interp = *pos;
++pos;
+ } else if (*pos == '(') {
+ open_interp = '@'; // For shell commands
}
static const char *quote_chars = "\"'`|/;([{<";
if (!strchr(quote_chars, *pos))
@@ -1195,6 +1197,8 @@ PARSER(parse_text) {
if (!lang && open_quote == '/')
lang = "Pattern";
+ else if (!lang && open_quote == '(')
+ lang = "Shell";
} else {
return NULL;
}