Closed khanybaba closed 1 year ago
⌘ ,
on a Mac)"better-comments.tags":
(currently on line 31)"tag": "!",
(currently on line 35) and change it to "tag": "! ",
(space character after the exclamation mark)✅ From now on that style is only applied to comment lines starting with !
.
Did that solve your issue? If so you may close the issue.
Thank you. Much appreciated!
In JS the ! is the logical not operator it is not uncommon to find a ternary statement of the form
!variable ? execute_this : execute_that
when commenting such a line of code Better Comments takes the initial exclamation mark to be a tag requiring (or providing an optional setting that will require) a tag to be followed by whitespace will prevent these commented lines from being incorrectly tagged