Here you can see SQL[ANSI] mode has tons of errors: wrong colors for keywords that are actually in comments. And then a "-- what --" making the whole rest into a comment. $ emacs -nw -Q m.sql.bz2 # attachment below emacs-version "26.3"