vscode-blockman icon indicating copy to clipboard operation
vscode-blockman copied to clipboard

Bug: commented RegExp throws invalid syntax error

Open panmenghan opened this issue 4 years ago • 1 comments

How to reproduce the issue?

the file:

'use strict'

class A {
  m() {
    // /<a < """>/
  }
}

the error:

Error: invalid syntax at line 5 col 16:
  // /<a < """>/
             ^

Screenshots or Screencast

微信图片_20210910102214

panmenghan avatar Sep 10 '21 02:09 panmenghan

It's because of the tag tokenizer, the HTML/XML tokenizer thinks that <a is HTML/XML tag, and somehow does not like it. I'll try fix it, but before that, you can do a temporary solution, just disable tag analyzation. Go to Blockman settings and uncheck N25 Analyze Tags.

leodevbro avatar Sep 10 '21 12:09 leodevbro