immerrr/lua-mode — Issue #25: Filling a comment can turn comment into code
Author: rrthomas
Created: 2012-01-19 20:56:20+00:00
State: open

Consider the following snippet:

-- @param s {d1, ..., dn}
-- @param l list to reshape
-- @return reshaped list
-- FIXME: Use ileaves instead of flatten (needs a while instead of a for in fill function)
function shape (s, l)
end

Go down to line 4, which says FIXME, and at the start of the line, press C-o to open a blank line. Now press M-q. Some of the comment becomes uncommented when it's wrapped.

Press Undo, and then go down a line, and press M-q again; this time, starting on the comment line rather than the line before, it works.

Tested with git master HEAD.