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

Bug: Comments are broken #53

Closed
Kjarrigan opened this issue Jan 18, 2022 · 0 comments · Fixed by #61
Closed

Bug: Comments are broken #53

Kjarrigan opened this issue Jan 18, 2022 · 0 comments · Fixed by #61
Labels
bug Something isn't working

Comments

@Kjarrigan
Copy link
Contributor

Stats

  • RocketLang: 0.13.0
  • Plattform: Linux home 5.4.0-94-generic
  • OS: Ubuntu 20.04.3 LTS
  • Installed RocketLang via: *.deb Package

Problem

As soon as I start adding comments to my code it breaks with weird errors. Sample:

Works:

part_one = def (input) {  
  calc(input, input.size(), 0)
}

calc = def (input, idx, floor) { }

returns

def (input, idx, floor) {

}

But adding comments returns various errors

// If I add comments here it breaks with 
// ERROR: identifier not found: part_one

part_one = def (input) {  
  calc(input, input.size(), 0)
}

// If I add comments here it breaks with 
// ERROR: identifier not found: calc

calc = def (input, idx, floor) { }

// If I add them here it works
// With more "complex" code I got other errors
// like
//
// parser errors:
//         expected next token to be :, got } instead
//         no prefix parse function for } found
@Kjarrigan Kjarrigan changed the title Comments are broken Bug: Comments are broken Jan 18, 2022
@Flipez Flipez added the bug Something isn't working label Jan 18, 2022
@Flipez Flipez mentioned this issue Jan 20, 2022
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

Successfully merging a pull request may close this issue.

2 participants