Skip to content

Commit

Permalink
Make var name consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
asmaloney committed Jan 22, 2024
1 parent 9783d7c commit 60f03f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions amod/lex.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const (
sectionModel sectionType = iota
sectionConfig
sectionInit
sectionProduction
sectionProductions
)

// lexer_amod tracks our lexing and provides a channel to emit lexemes
Expand Down Expand Up @@ -289,7 +289,7 @@ func (l *lexer_amod) lookupKeyword(id string) bool {
return slices.Contains(keywordsConfig, id)
case sectionInit:
return slices.Contains(keywordsInit, id)
case sectionProduction:
case sectionProductions:
return slices.Contains(keywordsProductions, id)
}

Expand Down Expand Up @@ -548,7 +548,7 @@ func lexIdentifier(l *lexer_amod) stateFn {
case "init":
l.currentSection = sectionInit
case "productions":
l.currentSection = sectionProduction
l.currentSection = sectionProductions
default:
return l.errorf("unrecognized section")
}
Expand Down

0 comments on commit 60f03f4

Please sign in to comment.