Skip to content

Releases: keithamus/csslex

v1.0.4

08 Jul 11:25
Compare
Choose a tag to compare

Full Changelog: v1.0.3...v1.0.4

fix number parsing for multiple dots

Prior to this change the lexer would parse numbers like .2.7 as a
single number, due to greedily eating the first .. The result would be
a single number token, which is incorrect as consuming a number should
stop after seeing the second .

The fix is to not greedily consume the first .. This now means that
.2.7 is correctly tokenized as two separate number tokens.

v1.0.3

08 Jul 10:59
Compare
Choose a tag to compare

Full Changelog: v1.0.2...v1.0.3

improve number parsing

This correctly tokenizes numbers like 1e+ as a DIMENSION with the number
as 1 and the dimension as e, followed by a delim of +. Prior to
this change the lexer would consider 1e+ a number in it's entirety,
but this is incorrect per the spec:

If the next 2 or 3 input code points are U+0045 LATIN CAPITAL LETTER E (E) or U+0065 LATIN SMALL LETTER E (e), optionally followed by U+002D HYPHEN-MINUS (-) or U+002B PLUS SIGN (+), followed by a digit, then:

Fixes #6

This change also introduces signCharacter which will be + or -, if
present.

v1.0.2

24 Jun 18:28
07a28a1
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.1...v1.0.2

v1.0.1

23 Jun 16:23
6639161
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.0...v1.0.1

v1.0.0

23 Jun 10:47
214bf6f
Compare
Choose a tag to compare

Initial Release