Ignore '%' for tex files so comments aren't broken. Fixed regex (hopefully).