/*/*! why */
annotation*/
Does anyone know why annotation is not being annotation in this case? I checked VS code.
/*/*! why */
annotation*/
Does anyone know why annotation is not being annotation in this case? I checked VS code.
This is because JavaScript does not have nestable multiline comments (the same goes for plenty of other languages: Why, in general, are nested block comments NOT allowed?). If you want to read the language spec, see https://tc39.es/ecma262/multipage/ecmascript-language-lexical-grammar.html#sec-comments. Your second "/*" is treated as part of the multiline comment's body (MultiLineCommentChars), and your first "*/" closes the multiline comment. Your next line of "annotation*/" is outside of any comment, and invalid syntax.