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

error if no space between closing function } and comment #21

Open
AndrewRayCode opened this issue Dec 25, 2018 · 0 comments
Open

error if no space between closing function } and comment #21

AndrewRayCode opened this issue Dec 25, 2018 · 0 comments

Comments

@AndrewRayCode
Copy link

console.log(parse( tokenize(` void main() { }//hi float f = 1.0; `) ) );
    unexpected EOF at line 4

      26 |
      27 |     console.log(
    > 28 |       parse(
         |       ^
      29 |         tokenize(`
      30 |           void main() {
      31 |           }//hi

      at unexpected (node_modules/glsl-parser/lib/index.js:737:11)
      at end (node_modules/glsl-parser/lib/index.js:270:7)
      at reader (node_modules/glsl-parser/lib/index.js:177:14)
      at parseArray (node_modules/glsl-parser/direct.js:12:10)

Does not happen if there's a space between the closing } and the comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant