Skip to content

async keyword parsing #115

@linearray

Description

@linearray

I think the async keyword is not always parsed correctly. At some stage in my compilation/deployment pipeline this file is being parsed https://github.com/purescript-web/purescript-web-html/blob/d6960bcf86763a1b8c83641b7f0b46506eb3886e/src/Web/HTML/HTMLScriptElement.js and I encounter this error

  Unable to parse foreign module:
  
    .spago/web-html/v2.3.0/src/Web/HTML/HTMLScriptElement.js
  
    The module could not be parsed:
  
    AsyncToken {tokenSpan = TokenPn 1062 57 30, tokenLiteral = "async", tokenComment = []}

It does work with 0.7.0.0 though and I think the usage of async in the file is legal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions