Skip to content

Commit

Permalink
feat!: reserve keyword super (#4836)
Browse files Browse the repository at this point in the history
# Description

## Problem\*

## Summary\*

This PR reserves the keyword `super` in prep for #4835 

## Additional Context



## Documentation\*

Check one:
- [ ] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.

# PR Checklist\*

- [ ] I have tested the changes locally.
- [ ] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
  • Loading branch information
TomAFrench authored Apr 18, 2024
1 parent 3d33a33 commit d5028a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/noirc_frontend/src/lexer/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,7 @@ pub enum Keyword {
ReturnData,
String,
Struct,
Super,
Trait,
Type,
Unchecked,
Expand Down Expand Up @@ -883,6 +884,7 @@ impl fmt::Display for Keyword {
Keyword::ReturnData => write!(f, "return_data"),
Keyword::String => write!(f, "str"),
Keyword::Struct => write!(f, "struct"),
Keyword::Super => write!(f, "super"),
Keyword::Trait => write!(f, "trait"),
Keyword::Type => write!(f, "type"),
Keyword::Unchecked => write!(f, "unchecked"),
Expand Down Expand Up @@ -930,6 +932,7 @@ impl Keyword {
"return_data" => Keyword::ReturnData,
"str" => Keyword::String,
"struct" => Keyword::Struct,
"super" => Keyword::Super,
"trait" => Keyword::Trait,
"type" => Keyword::Type,
"unchecked" => Keyword::Unchecked,
Expand Down

0 comments on commit d5028a6

Please sign in to comment.