@tolgee/cli 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -279,6 +279,10 @@ export default createMachine({
|
|
279
279
|
actions: 'markPropertyAsDynamic',
|
280
280
|
cond: (ctx) => ctx.jsxDepth === 0,
|
281
281
|
},
|
282
|
+
{
|
283
|
+
actions: 'decrementDoubleJsxDepth',
|
284
|
+
cond: (_ctx, e) => e.token === '/>',
|
285
|
+
},
|
282
286
|
{
|
283
287
|
actions: 'decrementJsxDepth',
|
284
288
|
},
|
@@ -360,6 +364,9 @@ export default createMachine({
|
|
360
364
|
incrementJsxDepth: assign({
|
361
365
|
jsxDepth: (ctx, _evt) => ctx.jsxDepth + 2,
|
362
366
|
}),
|
367
|
+
decrementDoubleJsxDepth: assign({
|
368
|
+
jsxDepth: (ctx, _evt) => ctx.jsxDepth - 2,
|
369
|
+
}),
|
363
370
|
decrementJsxDepth: assign({
|
364
371
|
jsxDepth: (ctx, _evt) => ctx.jsxDepth - 1,
|
365
372
|
}),
|