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

Fix steep:ignore does not work with CR/LF #1406

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tk0miya
Copy link
Contributor

@tk0miya tk0miya commented Dec 13, 2024

parser gem removes CR characters before parsing. Therefore Parser:: Source::Buffer does not contain any CR characters. As a result, Parser::Source::Comment points the location without CR characters.

On the other hand, RBS::Buffer contains CR characters. This difference causes steep:ignore comment disabled.

This converts the location of comments using line and column

Close #1376

parser gem removes CR characters before parsing.  Therefore `Parser::
Source::Buffer` does not contain any CR characters.  As a result,
`Parser::Source::Comment` points the location without CR characters.

On the other hand, `RBS::Buffer` contains CR characters.  This
difference causes `steep:ignore` comment disabled.

This converts the location of comments using line and column

Close soutaro#1376
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.

steep:ignore family sometimes doesn’t work in CRLF files
1 participant