diff options
author | bptato <nincsnevem662@gmail.com> | 2022-07-29 22:10:13 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-07-29 22:23:41 +0200 |
commit | 54f4d71325c4f12b23113c945625796bda78e3c6 (patch) | |
tree | bc63f561f49ef106c55ec9a39dee3bd87a57e3c7 /src/utils/twtstr.nim | |
parent | d207bf1d5ec19bfaac8f65e600cab05ddd35f74e (diff) | |
download | chawan-54f4d71325c4f12b23113c945625796bda78e3c6.tar.gz |
Update CSS tokenizer
It was slightly outdated and in many places incorrect.
Diffstat (limited to 'src/utils/twtstr.nim')
-rw-r--r-- | src/utils/twtstr.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim index f7d16618..63d9a730 100644 --- a/src/utils/twtstr.nim +++ b/src/utils/twtstr.nim @@ -33,7 +33,7 @@ const AsciiUpperAlpha* = {'A'..'Z'} const AsciiLowerAlpha* = {'a'..'z'} const AsciiAlpha* = (AsciiUpperAlpha + AsciiLowerAlpha) const AllChars = {chr(0x00)..chr(0xFF)} -const NonAscii = (AllChars - Ascii) +const NonAscii* = (AllChars - Ascii) const AsciiDigit* = {'0'..'9'} const AsciiHexDigit* = (AsciiDigit + {'a'..'f', 'A'..'F'}) const AsciiWhitespace* = {' ', '\n', '\r', '\t', '\f'} |