messageformat / parser

A PEG.js parser for ICU MessageFormat strings
https://messageformat.github.io/
MIT License
7 stars 5 forks source link

Have not reported missing closing bracket #10

Closed pkuczynski closed 5 years ago

pkuczynski commented 5 years ago

Example:

const message = '{count, plural, one {car} other {cars}'

Expected output:

SyntaxError: Expected "}" not found.

Actual output:

[ { type: 'function',
    arg: 'count',
    key: 'plural',
    param: ' one {car' },
  ' other ',
  { type: 'argument', arg: 'cars' } ]
eemeli commented 5 years ago

This appears to already be fixed in the master branch, which clearly should be packaged into a new release.

eemeli commented 5 years ago

Fixed in v4.

pkuczynski commented 5 years ago

Thanks! :)