diff options
author | Orestis Floros <orestisf1993@gmail.com> | 2019-03-21 19:29:56 +0200 |
---|---|---|
committer | Orestis Floros <orestisf1993@gmail.com> | 2019-03-21 21:31:30 +0200 |
commit | 8ce99cdacb7e243c7a75e7bbd54de7a7e8300a7e (patch) | |
tree | f0b364acf2abf4b31ef1ba81b981fcc9cb7e9e20 /parser-specs | |
parent | 3aa42cf795c387aba2cc560f7c543353c8a06a08 (diff) | |
download | i3-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.spec | 10 |
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: |