From c20d2e393039ac767c4e414ec52b0a7717a854ba Mon Sep 17 00:00:00 2001 From: prsabahrami Date: Sun, 8 Sep 2024 12:04:37 -0400 Subject: [PATCH] small fix --- crates/deno_task_shell/src/grammar.pest | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/deno_task_shell/src/grammar.pest b/crates/deno_task_shell/src/grammar.pest index a3d710b..ae4f95a 100644 --- a/crates/deno_task_shell/src/grammar.pest +++ b/crates/deno_task_shell/src/grammar.pest @@ -21,12 +21,14 @@ UNQUOTED_PENDING_WORD = ${ TILDE_PREFIX = ${ "~" ~ (!(OPERATOR | WHITESPACE | NEWLINE | "/") ~ ( - QUOTED_CHAR + (!("\"" | "'" | "$" | "\\" | "/") ~ ANY) ))* } ASSIGNMENT_TILDE_PREFIX = ${ - "~" ~ (!(OPERATOR | WHITESPACE | NEWLINE | "/" | ":") ~ ANY)* + "~" ~ (!(OPERATOR | WHITESPACE | NEWLINE | "/" | ":") ~ + (!("\"" | "'" | "$" | "\\" | "/") ~ ANY) + )* } FILE_NAME_PENDING_WORD = ${ (!(WHITESPACE | OPERATOR | NEWLINE) ~ (UNQUOTED_ESCAPE_CHAR | ("$" ~ VARIABLE) | UNQUOTED_CHAR | QUOTED_WORD))+ }