guybedford / es-module-lexer

Low-overhead lexer dedicated to ES module parsing for fast analysis
MIT License
912 stars 47 forks source link

fix: of keyword context in for statement only #178

Closed guybedford closed 1 month ago

guybedford commented 1 month ago

Resolves https://github.com/guybedford/es-module-lexer/issues/177 in ensuring that the context detection of the of keyword only applies when it is within a for (...) statement and not an if (..) or while (...).