mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
origin value
This commit is contained in:
parent
88d0553eda
commit
45b0f4be2d
1 changed files with 6 additions and 1 deletions
|
|
@ -295,11 +295,13 @@ public:
|
|||
|
||||
while (hasNext()) {
|
||||
bool relative = false;
|
||||
dynamic::Value value = dynamic::NONE;
|
||||
if (peek() == '~') {
|
||||
relative = true;
|
||||
value = 0;
|
||||
nextChar();
|
||||
}
|
||||
dynamic::Value value = dynamic::NONE;
|
||||
|
||||
if (hasNext() && peekNoJump() != ' ') {
|
||||
value = parseValue();
|
||||
|
||||
|
|
@ -317,6 +319,9 @@ public:
|
|||
if (arg == nullptr) {
|
||||
throw error("extra positional argument");
|
||||
}
|
||||
if (arg->origin.index() && relative) {
|
||||
break;
|
||||
}
|
||||
} while (!typeCheck(arg, value));
|
||||
|
||||
if (relative) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue