How to make Emacs sql-mode recognize MySQL #-style comments? -


I am reading a bunch of MySQL files that use # (end line) comments, but my SQL- Mode does not support them I found the share of the silk-table which defines the comments / ** and more - but according to this, the Imac syntax table supports only 2 comment styles.

Is there a way to add support for # comments easily in sql.el?

In MX-24 sql.el this is built-in! Simply run MX SQL-Set-Product MySQL RET and syntax table is set automatically, such as font-lock-keywords for all additional reserved words and types, interactive-mode, etc.

If you see under sql in the menu bar, then you can select product MySQL .

You can also MX Optimized-Variable SQL-Product RET to set the default product from ANSI.


Comments