Skip to content

Commit

Permalink
core/asm: change order of items in stringtokenTypes (#24153)
Browse files Browse the repository at this point in the history
This orders the items in slice definition same as the enum values.
  • Loading branch information
zgfzgf authored Dec 26, 2021
1 parent dddf73a commit 356bbe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/asm/lexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ func (it tokenType) String() string {

var stringtokenTypes = []string{
eof: "EOF",
lineStart: "new line",
lineEnd: "end of line",
invalidStatement: "invalid statement",
element: "element",
lineEnd: "end of line",
lineStart: "new line",
label: "label",
labelDef: "label definition",
number: "number",
Expand Down

0 comments on commit 356bbe3

Please sign in to comment.