Found a bug with php-mode today, and been hacking on julia-mode. Turns out writing a full-featured major mode is major task (esp non-lisps).