Skip to content

Commit

Permalink
Merge pull request no-context#164 from lrowe/patch-2
Browse files Browse the repository at this point in the history
Avoid fall through in keywordTransform
  • Loading branch information
tjvr authored Sep 20, 2021
2 parents a8dd439 + 251a3fe commit d8a76f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions moo.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@
var tokenType = reverseMap[keyword]
source += 'case ' + str(keyword) + ': return ' + str(tokenType) + '\n'
})
source += 'default: return\n'
source += '}\n'
}
source += '}\n'
Expand Down

0 comments on commit d8a76f7

Please sign in to comment.