Allow spaces in a vector literal

This commit is contained in:
Adam Urbańczyk
2020-08-30 14:07:25 +02:00
committed by GitHub
parent c7b7e9592f
commit 75be3e655d

View File

@ -473,7 +473,8 @@ def _makeGrammar():
rbracket = Literal(")") rbracket = Literal(")")
comma = Literal(",") comma = Literal(",")
vector = Combine( 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 # direction definition