aboutsummaryrefslogtreecommitdiff
path: root/parser-specs
diff options
context:
space:
mode:
authorOrestis Floros <orestisf1993@gmail.com>2019-03-21 19:29:56 +0200
committerOrestis Floros <orestisf1993@gmail.com>2019-03-21 21:31:30 +0200
commit8ce99cdacb7e243c7a75e7bbd54de7a7e8300a7e (patch)
treef0b364acf2abf4b31ef1ba81b981fcc9cb7e9e20 /parser-specs
parent3aa42cf795c387aba2cc560f7c543353c8a06a08 (diff)
downloadi3-8ce99cdacb7e243c7a75e7bbd54de7a7e8300a7e.tar.gz
i3-8ce99cdacb7e243c7a75e7bbd54de7a7e8300a7e.zip
cfg_workspace: Accept outputs with spaces again
This is a regression from bce088679. An other way to fix this would be to concatenate strings inside the strtok loop when an output starts with a double quote but I'd rather let the parser do the word splitting. Fixes #3646
Diffstat (limited to 'parser-specs')
-rw-r--r--parser-specs/config.spec10
1 files changed, 6 insertions, 4 deletions
diff --git a/parser-specs/config.spec b/parser-specs/config.spec
index 43181c59..a256d8b0 100644
--- a/parser-specs/config.spec
+++ b/parser-specs/config.spec
@@ -277,11 +277,13 @@ state WORKSPACE:
state WORKSPACE_OUTPUT:
'output'
- -> WORKSPACE_OUTPUT_STR
+ -> WORKSPACE_OUTPUT_WORD
-state WORKSPACE_OUTPUT_STR:
- output = string
- -> call cfg_workspace($workspace, $output)
+state WORKSPACE_OUTPUT_WORD:
+ output = word
+ -> call cfg_workspace($workspace, $output); WORKSPACE_OUTPUT_WORD
+ end
+ -> INITIAL
# ipc-socket <path>
state IPC_SOCKET: