subtle-brackets icon indicating copy to clipboard operation
subtle-brackets copied to clipboard

HTML/JSX tag brackets not highlighting

Open jabacchetta opened this issue 6 years ago • 3 comments

So far the extension appears to be working great, with one exception — I can't add pairs to the config. I've got the following configuration set, with the <> brackets not being matched:

"subtleBrackets.pairs": [
    {
      "open": "(",
      "close": ")"
    },
    {
      "open": "[",
      "close": "]"
    },
    {
      "open": "{",
      "close": "}"
    },
    {
      "open": "<",
      "close": ">"
    },
  ]

jabacchetta avatar Jan 07 '19 09:01 jabacchetta

@rafamel any plans on adding <> brackets? ^_^

karatnyk avatar Mar 13 '19 07:03 karatnyk

@jabacchetta @karatnyk This is already possible, and it should work for you as long as you disable parsing @ settings: subtleBrackets.parse: false. I imagine you're using it on an html file, and the parser doesn't treat tags as statements. I will leave this open so I can check whether a good strategy can be found to both have the parser on and allow opening and closing tags on html files for the next iteration of the extension.

Meanwhile, i'd suggest to disable subtleBrackets.parse. More on that @ #23

rafamel avatar Mar 25 '19 08:03 rafamel

@rafamel is there any new fix to this issue other than disabling the parser?

CXBoyy avatar May 28 '22 21:05 CXBoyy