Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integer-less decimals and sqrt negation assignement vscode issues #94

Closed
Slaynash opened this issue Aug 24, 2021 · 2 comments
Closed

Integer-less decimals and sqrt negation assignement vscode issues #94

Slaynash opened this issue Aug 24, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@Slaynash
Copy link

Describe the bug
integer-less decimals (ex: .5) and sqrt negation assignement (a=-sqrt) are highlighted by vscode-yolol but work in-game

Example code

d=(dx*dx+dy*dy+dz*dz)^.5
//                   ~
// [Expected expression on right side of ^. Found Token: '.'(Unknown) [parser]]
l=-sqrt(rx^2+ry^2+rz^2)
// ~~~~
// [Expected expression on right side of -. Found Token: 'sqrt'(Keyword) [parser]]
@dbaumgarten
Copy link
Owner

Interesting find.
The -sqrt is a simple bug in the yodk-parser.
The thing with .5 is really new to me. Never seen that anywhere before, but you are right, the game just accepts it...

@dbaumgarten dbaumgarten added the bug Something isn't working label Aug 24, 2021
dbaumgarten added a commit that referenced this issue Aug 24, 2021
dbaumgarten added a commit that referenced this issue Aug 24, 2021
@dbaumgarten dbaumgarten added waiting for release Has been implemented but not yet published and removed waiting for release Has been implemented but not yet published labels Aug 24, 2021
@dbaumgarten
Copy link
Owner

Published with v0.1.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants