better-comments icon indicating copy to clipboard operation
better-comments copied to clipboard

question mark as first non-whitespace char

Open sKopheK opened this issue 2 years ago • 2 comments

Hi, following code gets incorrectly highlighted as seen on the screenshot below, applies for other characters such as "*" or "!"

// const newFulltextSearch = searchCondition
//   ? `( ${searchCondition} ) ${Condition.And} `
//   : ''

imagen

sKopheK avatar Sep 15 '23 09:09 sKopheK

This same behavior even happens outside comments.

image

tylerlaprade avatar Dec 04 '23 20:12 tylerlaprade

You can try my fork: https://github.com/edwinhuish/better-comments-next

edwinhuish avatar Dec 05 '23 00:12 edwinhuish