[ImageJ-bugs] [Bug 921] Script editor attempts to parse @ in /* comments */ as parameters

bugzilla at fiji.sc bugzilla at fiji.sc
Fri Aug 29 12:12:23 CDT 2014


http://fiji.sc/bugzilla/show_bug.cgi?id=921

Curtis Rueden <ctrueden at wisc.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ctrueden at wisc.edu

--- Comment #3 from Curtis Rueden <ctrueden at wisc.edu> ---
Another possibility would be to tweak the parameter annotation mechanism to
have a leading line, and a trailing line, marking the start and end of the
annotations, respectively. Something like:

// @@@
// @String name
// @OUTPUT String greeting
// @@@

That would reduce the chance of comments being misinterpreted.

Another possible solution would be to only respect the "until end of line"
style comments for parameters. So:

// @author name

Would be a parameter, but:

/*
 * @author name
 */

Would not, because it does not start with "//"

Mark and I discussed adding a "getCommentString" to the ScriptLanguage
interface which would facilitate this sort of parsing.

Stephan, any other suggestions to improve this?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-bugs/attachments/20140829/d94faddd/attachment.html>


More information about the Imagej-bugs mailing list