From 75be3e655d667fa49b28f15e8be489bcf0599239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Urba=C5=84czyk?= Date: Sun, 30 Aug 2020 14:07:25 +0200 Subject: [PATCH] Allow spaces in a vector literal --- cadquery/selectors.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cadquery/selectors.py b/cadquery/selectors.py index 6b0a1093..ca9fb403 100644 --- a/cadquery/selectors.py +++ b/cadquery/selectors.py @@ -473,7 +473,8 @@ def _makeGrammar(): rbracket = Literal(")") comma = Literal(",") vector = Combine( - lbracket + floatn("x") + comma + floatn("y") + comma + floatn("z") + rbracket + lbracket + floatn("x") + comma + floatn("y") + comma + floatn("z") + rbracket, + adjacent=False, ) # direction definition