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

Add __END_LINE__ to Crystal syntax highlighting #1670

Merged
merged 1 commit into from Jan 9, 2021

Conversation

rhysd
Copy link
Contributor

@rhysd rhysd commented Jan 8, 2021

I found __END_LINE__ magic constant is missing in syntax highlighting for Crystal language.

https://crystal-lang.org/reference/syntax_and_semantics/constants.html

I found `__END_LINE__` magic constant is missing in syntax highlighting for Crystal language.
@rhysd
Copy link
Contributor Author

rhysd commented Jan 8, 2021

I want to have review by @oprypin

Copy link
Contributor

@oprypin oprypin left a comment

Choose a reason for hiding this comment

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

Good find!

Comment on lines 173 to +174
previous_def forall out uninitialized __DIR__ __FILE__ __LINE__
__END_LINE__
Copy link
Contributor

Choose a reason for hiding this comment

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

The way that the lines are split looks weird, but this is technically the most correct way, so nothing to do here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not familiar with code style of this project, but all lines seem to be limited within 90 characters. If this is put at L173, L173 will exceed 90 chars. Please let me know if my understanding is not correct.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Our "desired" target line length is 90 characters, so this looks fine. The 90 character rule hasn't been enforced but it's a general guideline.

@Anteru Anteru added this to the 2.7.4 milestone Jan 9, 2021
@Anteru Anteru added the changelog-update Items which need to get mentioned in the changelog label Jan 9, 2021
@Anteru Anteru merged commit 894a5bc into pygments:master Jan 9, 2021
@Anteru
Copy link
Collaborator

Anteru commented Jan 9, 2021

Merged, good catch!

@Anteru Anteru removed the changelog-update Items which need to get mentioned in the changelog label Jan 12, 2021
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

3 participants