File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1434,7 +1434,7 @@ repository:
1434
1434
extension-mdx-expression-flow :
1435
1435
if : mdx
1436
1436
# See <https://github.com/wooorm/markdown-rs/blob/2498e31/src/construct/mdx_expression_flow.rs>.
1437
- begin : var(before)(\{)
1437
+ begin : var(before)(\{)(?!.*\}[\t ]*.)
1438
1438
beginCaptures :
1439
1439
1 :
1440
1440
name : string.other.begin.expression.var(suffix).js
Original file line number Diff line number Diff line change @@ -1555,7 +1555,7 @@ const grammar = {
1555
1555
]
1556
1556
} ,
1557
1557
'extension-mdx-expression-flow' : {
1558
- begin : '(?:^|\\G)[\\t ]*(\\{)' ,
1558
+ begin : '(?:^|\\G)[\\t ]*(\\{)(?!.*\\}[\\t ]*.) ' ,
1559
1559
beginCaptures : {
1560
1560
1 : {
1561
1561
name : 'string.other.begin.expression.mdx.js'
Original file line number Diff line number Diff line change 2322
2322
<key >extension-mdx-expression-flow </key >
2323
2323
<dict >
2324
2324
<key >begin </key >
2325
- <string >(?:^|\G)[\t ]*(\{) </string >
2325
+ <string >(?:^|\G)[\t ]*(\{)(?!.*\}[\t ]*.) </string >
2326
2326
<key >beginCaptures </key >
2327
2327
<dict >
2328
2328
<key >1 </key >
You can’t perform that action at this time.
0 commit comments