Repro: 1. C-x b RET (open \*scratch\*) 2. M-x js-mode RET 3. Go to the first line and insert `//` 4. Go to the second line and insert `//` At this point, Flymake *should* report no issues, but it reports an unclosed regexp literal error. 5. On a new line, type `documents` 6. Hover the mouse cursor over the word 'documents' and observe: 