leodevbro / vscode-blockman

VSCode extension to highlight nested code blocks
https://github.com/leodevbro/vscode-blockman
MIT License
345 stars 16 forks source link

Bug of analyzing brackets in JSX/TSX (React) file #94

Open leodevbro opened 1 year ago

leodevbro commented 1 year ago

This code seems ok:

const a = () => {
  const amount = 200;

  return ( 
    <div>
      <div>$ {amount}</div>
    </div>
  );
};

image

But if you delete the space next to the dollar sign, bracket analyzation is wrong:

const a = () => {
  const amount = 200;

  return ( 
    <div>
      <div>${amount}</div>
    </div>
  );
};

image

.