Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove parsing of __ in title strings, fixes #53 #54

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

Merged
zbraniecki merged 1 commit into rust-lang:master from ndmitchell:fix-53
Oct 26, 2023

Conversation

Copy link
Contributor

@ndmitchell ndmitchell commented Jan 3, 2022

In #53 I reported the issue that __ in titles gets parsed specially. This feature isn't documented anywhere, and doing a bit of git archaeology, I get lost 4 years ago with phrases like "more tests" adding the code. I can't figure out why someone would want this feature, but assume there was a reason when it was added, however, I'm not sure it is still useful. There doesn't seem any way to opt out of this feature, and as a result, error messages containing __ get dropped (which is super confusing).

In the absence of feedback as the right way to proceed, I've made a diff removing the feature entirely. The alternative would be to document the feature, explain why it's useful, and explain how to avoid it (an alternative API? an escaping scheme?).

Copy link
Contributor Author

I had a user of Starlark get really confused by the missing __ recently. Anything we can do to get this merged?

Copy link
Member

jyn514 commented Oct 28, 2022

I don't think this library is currently maintained.

Copy link
Contributor

I consider it maintained at low velocity. I plan to look into this issue over the weekend.

jyn514, ndmitchell, cstrahan-blueshift, jshort, harupy, and T-256 reacted with heart emoji

Copy link

jshort commented Nov 28, 2022

I'm affected by this too so I'd love to see this merged!

Copy link

harupy commented Jul 26, 2023

@zbraniecki I'm also affected by this. Can we merge this PR?

Copy link

zong-zhe commented Oct 17, 2023
edited
Loading

Hi, I want to ask when will this PR be merged? I have encountered the same issue. We have developed a language compiler
KCL that uses this library, and when the user-defined variable __b cannot be found, it is displayed as b in the error message, which is confusing.

Copy link

zertosh commented Oct 25, 2023

Please consider merging this

Copy link
Contributor

Apologies for radio silence and thank you for the PR.

This feature has been added to support text style annotation based on the source, but I'm not sure if it's useful anymore.

zertosh reacted with thumbs up emoji

@zbraniecki zbraniecki merged commit 160ef45 into rust-lang:master Oct 26, 2023
Copy link

zertosh commented Oct 26, 2023

@zbraniecki, no worries. Much appreciated. Any chance you can get a release out? Thank you :)

facebook-github-bot pushed a commit to facebookexperimental/rust-shed that referenced this pull request Oct 27, 2023
Summary:
PR was merged: rust-lang/annotate-snippets-rs#54
Easier to keep track of by pointing to an upstream rev rather than a
fork.
Reviewed By: ndmitchell, shayne-fletcher
Differential Revision: D50743702
fbshipit-source-id: f9a58c4901f85e0b489e5785a8137e2ffc477884
facebook-github-bot pushed a commit to facebook/sapling that referenced this pull request Oct 27, 2023
Summary:
PR was merged: rust-lang/annotate-snippets-rs#54
Easier to keep track of by pointing to an upstream rev rather than a
fork.
Reviewed By: ndmitchell, shayne-fletcher
Differential Revision: D50743702
fbshipit-source-id: f9a58c4901f85e0b489e5785a8137e2ffc477884
facebook-github-bot pushed a commit to facebook/fb303 that referenced this pull request Oct 27, 2023
Summary:
PR was merged: rust-lang/annotate-snippets-rs#54
Easier to keep track of by pointing to an upstream rev rather than a
fork.
Reviewed By: ndmitchell, shayne-fletcher
Differential Revision: D50743702
fbshipit-source-id: f9a58c4901f85e0b489e5785a8137e2ffc477884
facebook-github-bot pushed a commit to facebook/sapling that referenced this pull request Nov 11, 2023
Summary:
rust-lang/annotate-snippets-rs#54 was released
as `annotate-snippets-0.9.2`. There are no new changes here, just that
we're pulling from crates.io.
Reviewed By: capickett
Differential Revision: D51218745
fbshipit-source-id: 2195771458b7578606f71b3b413a2813e5843f24
facebook-github-bot pushed a commit to facebook/fb303 that referenced this pull request Nov 11, 2023
Summary:
rust-lang/annotate-snippets-rs#54 was released
as `annotate-snippets-0.9.2`. There are no new changes here, just that
we're pulling from crates.io.
Reviewed By: capickett
Differential Revision: D51218745
fbshipit-source-id: 2195771458b7578606f71b3b413a2813e5843f24
facebook-github-bot pushed a commit to facebookexperimental/rust-shed that referenced this pull request Nov 11, 2023
Summary:
rust-lang/annotate-snippets-rs#54 was released
as `annotate-snippets-0.9.2`. There are no new changes here, just that
we're pulling from crates.io.
Reviewed By: capickett
Differential Revision: D51218745
fbshipit-source-id: 2195771458b7578606f71b3b413a2813e5843f24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /