Releases: tdewolff/parse
Releases · tdewolff/parse
v2.7.9
v2.7.8
- JS: return Integer token in lexer instead of Decimal/BigInt tokens when an integer; remove lexer error for identifier after numeric (will be caught in parser)
- JS: support parsing binary/octal/hexadecimal integers with big int suffix, fixes https://github.com/tdewolff/parse/issues/116
- JS: fix parsing of for/for-of/for-in regarding LHSExpr vs Expr
- JS: fix parsing of semicolon after import() CallExpression
v2.7.7
v2.7.6
- JS AST: fix output of binding array with elision
- JS: fix parsing of 'async(...a)' as a CallExpression
- JS AST: fix indenting for comments
- JS: fix allowDirectivePrologue propagation, reset exprLevel for contents of methods/functions to make bang-comments work
- JS: fix parsing of CallExpression arguments, require comma after spread element
- HTML: support PHP template tags
v2.7.5
v2.7.4
v2.7.3
v2.7.2
v2.7.1
v2.7.0
- Remove error prefix for some lexers/parsers
- JS: improve output of ast.JS
- Refactor ast.JS(), ast.JSWriteTo(), and ast.JSON() functions, removing ~50% of superfluous and duplicate code; JS and JSON now both take an io.Writer
- JS: fail if throw statement is not followed (without line terminator) by an expression
- JS: fail if arrow parameters are a valid expression but invalid as parameters
- JS: don't allow yield expression in arrow function body
- JS: fix arrow parameter conversion
- JS: fix import/export with empty named imports
- JS: throw error for unterminated comments
- JS: support Return and Default syntax parameters
- JS: fail for arrow function with BindingIdentifier as argument, where yield isn't allowed
- JS: fix bug for valid 'async()'
- JS: fix Yield, Await, Default syntax parameters for export statements
- JS: fix Await and Yield syntax parameters for ArrowFunc
- JS: fix panic when 'for(let ' has bad syntax
- Improvements in strconv