From 4b352f89a309dd2405f782062476202829beee37 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 6 Sep 2024 11:37:33 -0400 Subject: Add Shell dsl type --- parse.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'parse.c') 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; } -- cgit v1.2.3