Skip to content

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

@AndrewRayCode

Description

@AndrewRayCode
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions