In emacs, ruby mode with font-lock-mode turned on, this line gives
trouble:
"%.17g%s%.17gi" % [c.real, c.image < 0 ? ‘-’ : ‘+’, c.image]
starting with the last dot (.) in this line, the rest of the file
containing this line is colored as a string literal. Indentation still
works correctly, just the color is wrong.
This works around the problem:
"%.17g%s""%.17gi" % [c.real, c.image < 0 ? ‘-’ : ‘+’, c.image]
I don’t know enough emacs lisp to fix or even locate the underlying
problem, so if someone who does could publish a fix, that would be nice.
T