Skip to content

Commit

Permalink
Fixed state declarations not being parsed properly
Browse files Browse the repository at this point in the history
  • Loading branch information
VonTum committed Sep 12, 2023
1 parent 33cbe75 commit c0044d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ impl<'g, 'file> ASTParserContext<'g, 'file> {
}

fn try_parse_declaration(&mut self, token_stream : &mut TokenStream, declarations : &mut Vec<SignalDeclaration>, scope : &mut LocalVariableContext<'_, 'file>) -> Option<(usize, Span)> {
let identifier_type = if token_stream.peek_is_plain(kw("state")) {
let identifier_type = if token_stream.eat_is_plain(kw("state")).is_some() {
IdentifierType::State
} else {
IdentifierType::Local
Expand Down

0 comments on commit c0044d6

Please sign in to comment.