The built-in Scintilla SQL Lexer is not fully compliant with the MySQL syntax, e.g. comments are not recognized. Eventhough I made some workaround to comments, the best way to get fully customized syntax adapted to the MySQL is by creating a new Scintilla Lexer.