Skip to content

Add support for noreturn routine directive#299

Open
jgardn3r wants to merge 1 commit into
masterfrom
support-noreturn
Open

Add support for noreturn routine directive#299
jgardn3r wants to merge 1 commit into
masterfrom
support-noreturn

Conversation

@jgardn3r
Copy link
Copy Markdown
Collaborator

This PR fixes #276.

By adding the keyword to the lexer and to the list of method directives, its support should be that of any other routine directive.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jgardn3r jgardn3r force-pushed the support-noreturn branch from 9d74251 to c017fff Compare May 18, 2026 01:32
@zaneduffield
Copy link
Copy Markdown
Contributor

Lucky that the perfect hash function didn't need an update!

P.S: don't forget to add it to the other keywords text file for generating the hash function.

@jgardn3r jgardn3r requested a review from fourls May 20, 2026 05:48
@jgardn3r jgardn3r force-pushed the support-noreturn branch from c017fff to b69ef70 Compare May 21, 2026 05:46
Copy link
Copy Markdown
Collaborator

@fourls fourls left a comment

Choose a reason for hiding this comment

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

Looks good - except for completeness let's add it to the KEYWORDS array in core/benches/benchmark_lexer.rs.

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.

Support new noreturn directive

3 participants