diff --git a/packages/babel-parser/src/tokenizer/context.js b/packages/babel-parser/src/tokenizer/context.js index c8d064826e..4543b2e19a 100644 --- a/packages/babel-parser/src/tokenizer/context.js +++ b/packages/babel-parser/src/tokenizer/context.js @@ -2,7 +2,7 @@ // The token context is used to track whether `}` matches // a template quasi `${` or other tokens containing `{`: -// namely tt.braceL and tt.dollarBraceL +// namely tt.braceL `{` and tt.braceHashL `#{` import { types as tt } from "./types"; diff --git a/packages/babel-parser/test/fixtures/tokens/record-and-tuple/brace-hash/output.json b/packages/babel-parser/test/fixtures/tokens/record-and-tuple/brace-hash/output.json index 2902869a67..1664ad21d6 100644 --- a/packages/babel-parser/test/fixtures/tokens/record-and-tuple/brace-hash/output.json +++ b/packages/babel-parser/test/fixtures/tokens/record-and-tuple/brace-hash/output.json @@ -37,7 +37,7 @@ { "type": { "label": "}", - "beforeExpr": false, + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false,