Skip to content

Commit

Permalink
Merge pull request #5285 from helixbass/browser-compiler-call-parsing…
Browse files Browse the repository at this point in the history
…-error

Browser compiler call parsing fix
  • Loading branch information
GeoffreyBooth authored Dec 31, 2019
2 parents 8677a0d + c4f0c9e commit 33bbef9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
14 changes: 9 additions & 5 deletions lib/coffeescript/grammar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions lib/coffeescript/parser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/grammar.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -524,16 +524,16 @@ grammar =

# Ordinary function invocation, or a chained series of calls.
Invocation: [
o 'Value OptFuncExist String', -> new TaggedTemplateCall $1, $3, $2
o 'Value OptFuncExist Arguments', -> new Call $1, $3, $2
o 'SUPER OptFuncExist Arguments', -> new SuperCall LOC(1)(new Super), $3, $2, $1
o 'Value OptFuncExist String', -> new TaggedTemplateCall $1, $3, $2.soak
o 'Value OptFuncExist Arguments', -> new Call $1, $3, $2.soak
o 'SUPER OptFuncExist Arguments', -> new SuperCall LOC(1)(new Super), $3, $2.soak, $1
o 'DYNAMIC_IMPORT Arguments', -> new DynamicImportCall LOC(1)(new DynamicImport), $2
]

# An optional existence check on a function.
OptFuncExist: [
o '', -> no
o 'FUNC_EXIST', -> yes
o '', -> soak: no
o 'FUNC_EXIST', -> soak: yes
]

# The list of arguments to a function call.
Expand Down

0 comments on commit 33bbef9

Please sign in to comment.