Skip to content

Fix formatting of multiline code blocks in asm-comments - #3000

Merged
catamorphism merged 1 commit into
rust-lang:incomingfrom
dgryski:master
Jul 23, 2012
Merged

Fix formatting of multiline code blocks in asm-comments#3000
catamorphism merged 1 commit into
rust-lang:incomingfrom
dgryski:master

Conversation

@dgryski

@dgryski dgryski commented Jul 23, 2012

Copy link
Copy Markdown
Contributor

When building with -S, the rust source code for each is included as a comment in an InlineAsm block. However, if the code block contains new-lines, the only the first line ends up being correctly commented and indented. This patch updates the comment sanitizing code to deal correctly with newlines.

catamorphism added a commit that referenced this pull request Jul 23, 2012
Fix formatting of multiline code blocks in asm-comments
@catamorphism
catamorphism merged commit 4806a4f into rust-lang:incoming Jul 23, 2012
@catamorphism

Copy link
Copy Markdown
Contributor

Merged, thanks!

bors pushed a commit to rust-lang-ci/rust that referenced this pull request May 15, 2021
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Oct 6, 2023
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Oct 7, 2023
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
3228: Use proper range for hover on macro arguments r=matklad a=edwin0cheng

This PR use `original_range` to remap the range of found syntax node in `hover` and thus it should return the proper text range now.

fixed rust-lang#3000 
fixed rust-lang#3135 


Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
tshepang pushed a commit to tshepang/rust that referenced this pull request Sep 4, 2026
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.

2 participants