JSDoc - mark some code to not be parsed but retain documentation?
问题 I'm trying to document a Javascript file with JSDoc(3) like so: /** 1 if gnome-bluetooth is available, 0 otherwise * @type {boolean} * @const */ const HAVE_BLUETOOTH = @HAVE_BLUETOOTH@; Now the file (called config.js.in ) is not on its own valid Javascript; the file gets run through a Makefile which substitutes an appropriate value for @HAVE_BLUETOOTH@ . When I try to run JSdoc on this, it (understandably) balks because of the syntax error in the file. Is there some way to tell JSDoc to