better-comments
better-comments copied to clipboard
question mark in conditional chaining JS example gets highlighted as a question
I would like optional chaining to not trigger the blue question highlighting when used in the beginning of a line in a JSDoc style JavaScript @example.
/**
* Demo
*
* @example
* ```js
* foo()
* .values()
* .map((value) => value.toString())
* .find((value) => value === "bar")
* ?.baz();
* ```
*/
function foo() {
}
The below screenshots show that ?.baz(); is highlighted as a question, but IMO should not be: