Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Apr 15, 2024
1 parent 971bcff commit 589b298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acorn/src/regexp.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ pp.regexp_disjunction = function(state) {
for (const groupName of state.groupNamesToAddToUpperScope) {
// Adds the groupName added in Disjunction to groupNames.
state.groupNames.push(groupName)
// Adds the groupName added with Disjunction to the upper scope.
// Adds the groupName added in Disjunction to the upper scope.
groupNamesToAddToUpperUpperScope.push(groupName)
}
state.groupNamesToAddToUpperScope = groupNamesToAddToUpperUpperScope
Expand All @@ -238,7 +238,7 @@ pp.regexp_alternative = function(state) {
;

if (this.options.ecmaVersion >= 16) {
// Adds the groupName added with Alternative to the upper scope.
// Adds the groupName added in Alternative to the upper scope.
for (const groupName of state.groupNames) {
if (upperGroupNames.indexOf(groupName) === -1) {
state.groupNamesToAddToUpperScope.push(groupName)
Expand Down

0 comments on commit 589b298

Please sign in to comment.