immerrr/lua-mode — Issue #20: Long strings can be confused by quotes
Author: rrthomas
Created: 2012-01-07 08:04:23+00:00
State: open

Load the linked code http://git.savannah.gnu.org/cgit/zile.git/plain/src/funcs.lua?h=lua&id=ce041ec6686409e372a2ae13df02e407488721fb into current lua-mode master head, and search for "fill-column". Note that you are in the middle of a long string, but it is not colored correctly. Note that after the close quote on `fill-column' the following text is highlighted as if it were a string, up to the end of the long string and beyond.

This bug depends on the size of the buffer. If I just save the "auto-fill-mode" block into a file, it is highlighted correctly. If I save the file up to that point (i.e. lines 1-68 inclusive), then the bug is triggered. However, if I then remove the comment block at the top of the file, the bug does not trigger.

I hope that's enough to repro! Of course let me know if you need more.