Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prsabahrami committed Sep 8, 2024
1 parent 6fc25ab commit c20d2e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/deno_task_shell/src/grammar.pest
Original file line number Diff line number Diff line change
Expand Up @@ -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))+ }
Expand Down

0 comments on commit c20d2e3

Please sign in to comment.