Releases: keithamus/csslex
v1.0.4
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
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
What's Changed
- Support Unicode in idents by @keithamus in #4 - special thanks to @romainmenke for filing and verifying the PR!
Full Changelog: v1.0.1...v1.0.2