Skip to content

Keep outer attributes on the first file item - #29

Closed
faysou wants to merge 1 commit into
aacebo:masterfrom
faysou:fix-file-attribute-ownership
Closed

faysou wants to merge 1 commit into
aacebo:masterfrom
faysou:fix-file-attribute-ownership

Conversation

@faysou

@faysou faysou commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

When parsing a Rust file, attach leading inner attributes to the file and leave outer attributes on the item they annotate. Lookahead also recognizes a file that contains only inner attributes.

The attribute test module passes.

Related to #25.

Collect only leading inner attributes on the file and recognize files
that contain inner attributes without items.
@faysou
faysou force-pushed the fix-file-attribute-ownership branch from da3b61f to 8bb8adc Compare November 21, 2026 07:02
@faysou faysou closed this Nov 21, 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.

1 participant