summaryrefslogtreecommitdiffstats
path: root/src/shell.pest
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-23 21:02:14 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-23 21:02:14 -0500
commite4ed126f9ff7c984a407a4aa1a73ff91fcea1058 (patch)
tree575b9d20df7d6cd041e58b3fb79ece8facb1731d /src/shell.pest
parentec91ed9cbbac192c7a8012b88b5db0c7e500a6f4 (diff)
downloadnbsh-e4ed126f9ff7c984a407a4aa1a73ff91fcea1058.tar.gz
nbsh-e4ed126f9ff7c984a407a4aa1a73ff91fcea1058.zip
don't strip whitespace inside of strings
Diffstat (limited to 'src/shell.pest')
-rw-r--r--src/shell.pest2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell.pest b/src/shell.pest
index 7744873..e61b5bd 100644
--- a/src/shell.pest
+++ b/src/shell.pest
@@ -6,7 +6,7 @@ bareword = @{ bareword_char+ }
single_string = @{ single_string_char+ }
double_string = @{ double_string_char+ }
-word = {
+word = ${
bareword |
"'" ~ single_string ~ "'" |
"\"" ~ double_string ~ "\""