Skip to content

Conversation

@johnbergvall
Copy link
Contributor

@johnbergvall johnbergvall commented Nov 22, 2023

A tweak of #2464

Previously, the second line was treated as a series of Literals following 192.0.2.4, instead of a separate record line

delta           A      192.0.2.4 ; comment
delta2           A      192.0.2.5

'multiple-simple-values': [
include('simple-value'),
(r'[\n]+', Whitespace),
(r'[ \t]+', Whitespace),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't these two just \s+?

Also, simple-value already includes a rule for [ \t]+.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you are correct. The last line should not have been included in the final revision. Sorry!

An updated version is available.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@birkenfeld is there anything else I can do to help getting this merged?

Previously, the second line was treated as continuing Literals following
192.0.2.4

delta           A      192.0.2.4 ; comment
delta2           A      192.0.2.5
@birkenfeld
Copy link
Member

Sorry, dropped the ball. LGTM!

@birkenfeld birkenfeld merged commit e49aef6 into pygments:master Apr 7, 2024
@Anteru Anteru added this to the 2.18.0 milestone Apr 28, 2024
@Anteru Anteru added the A-lexing area: changes to individual lexers label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-lexing area: changes to individual lexers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants