Go parsers for web formats
MIT License
Bot releases are hidden (Show)
Published by tdewolff over 3 years ago
Published by tdewolff over 3 years ago
Published by tdewolff over 3 years ago
Published by tdewolff over 3 years ago
Published by tdewolff over 3 years ago
Published by tdewolff over 3 years ago
JS: add support for class field definitions (see https://github.com/tc39/proposal-class-fields)
Published by tdewolff over 3 years ago
JS: add &&= ||= ??= operators
Published by tdewolff over 3 years ago
"use strict"
) as a separate statementPublished by tdewolff over 3 years ago
Published by tdewolff over 3 years ago
for
initializer, see #69var
declarations not adding their usage in all the scopes between its block scope and the function scopePublished by tdewolff almost 4 years ago
Published by tdewolff almost 4 years ago
%
symbolsPublished by tdewolff about 4 years ago
Fix position of error in error context with unicode characters
Published by tdewolff about 4 years ago
Published by tdewolff about 4 years ago
\r
, \n
and \t
using URL encoding, fixes tdewolff/minify#329var [a,,]
in
operator in for statements and arrow function bodiesPublished by tdewolff about 4 years ago
Scope
Published by tdewolff about 4 years ago
in
parameters in group expressions (that couldn't have been an arrow function)Published by tdewolff about 4 years ago
parse.Input
and use that instead of io.Reader
for input to lexers.For users, there is a slight breakage of function signatures in this release: instead of calling for example p := css.NewParser(r, false)
you should call
input := parse.NewInput(r)
defer input.Restore()
p := css.NewParser(input, false)
or if the byte-slice behind r
is not used anywhere else (which is generally the case), then you could just call
p := css.NewParser(parse.NewInput(r), false)
This is for all lexers/parsers.
Published by tdewolff about 4 years ago
Update URLEncodingTable
and add DataURIEncodingTable
for better URL/URI encoding.
Published by tdewolff over 4 years ago
+
or -
as integers, and don't parse the exponent if there is no numbere
as a floatminify
repository