Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SystemVerilog keyword/operator improvements #1464

Merged
merged 3 commits into from
Jun 1, 2020
Merged

SystemVerilog keyword/operator improvements #1464

merged 3 commits into from
Jun 1, 2020

Conversation

cjdrake
Copy link
Contributor

@cjdrake cjdrake commented May 27, 2020

No description provided.

Put them next to the generic keywords list.
The 'inside' and 'dist' keywords are described as operators in the
SystemVerilog standard, below unary increment/decrement, and above
concatenation in precedence.
See 1800-2017 tables 11-1 and 11-2 for a list of operators.

This matches the description of pygemnts Operator.Word token:
"For any operator that is a word (e.g. not)."
Copy/paste the contents of 1800-2017 Table 11-2,
and see what the SV lexer chops it up into.

I made lots of comments for potential improvements.
Some operators, such as '[' and '.' are being labeled as punctuation.
Also, multi-character operators such as '<<<=' are being split up
into multiple, single-character tokens, eg '<' '<' '<' '='.
@Anteru Anteru self-assigned this Jun 1, 2020
@Anteru Anteru added this to the 2.7 milestone Jun 1, 2020
@Anteru Anteru added the changelog-update Items which need to get mentioned in the changelog label Jun 1, 2020
@Anteru Anteru merged commit e064c55 into pygments:master Jun 1, 2020
@Anteru Anteru removed the changelog-update Items which need to get mentioned in the changelog label Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants