diff options
author | Chris Drake <cjdrake@users.noreply.github.com> | 2020-05-26 12:58:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 21:58:05 +0200 |
commit | 30f060ddfd1aadf41d1b33eae3cde49a6ee57495 (patch) | |
tree | bdb4083dd93198d45d7bbcf0f354ddc93cc09cc7 /tests/test_clexer.py | |
parent | 66a949b8e0e5fac42d6006ed66d728808a110633 (diff) | |
download | pygments-git-30f060ddfd1aadf41d1b33eae3cde49a6ee57495.tar.gz |
Update SystemVerilog literal constants (#1460)
The original implementation was missing some of the more arcane features
such as underbars, the character 's' for signed/unsigned, support for
spaces before/after the base specifier, capital letter base specifiers
(ie 'B 'D 'H), and the 4-state 'xXzZ?' characters.
For regular integers, the 'l' and 'L' suffixes are not valid.
That is, unlike C, in Verilog '42L' is not a valid int literal.
Create a new test that exercises most of the interesting kinds of
SystemVerilog numbers.
This fixes a couple minor issues with what type of number the lexer
returns. For example, Numbers like '42' used to return Integer.Hex,
but now return Integer.Decimal.
Diffstat (limited to 'tests/test_clexer.py')
0 files changed, 0 insertions, 0 deletions