KomodoEdit icon indicating copy to clipboard operation
KomodoEdit copied to clipboard

SQL/mySQL syntax highlighting treats comments beginning with hash mark (#) as normal code

Open jbullock35 opened this issue 4 years ago • 3 comments

Short Summary

In mySQL, there are three ways to create comments. One way is to add a hash mark (#) to a line; everything on the line on the hash mark is a comment. But in Komodo IDE 12.0, the characters after the hash mark are highlighted as though they are normal SQL code, not comments. This is so for both the SQL and mySQL file types.

The other two types of comments receive "comment highlighting" in Komodo IDE. That is, they're displayed as comments, not normal code.

Steps to Reproduce

  1. Create a file. Specify the mySQL file type.
  2. Type # CREATE DATABASE courseEvals DEFAULT CHARACTER SET utf8;
  3. Type # Design principle: where the primary key consists of multiple columns, create

Expected results

Normal comment formatting: image

Actual results

The lines are highlighted as though they are normal code, not comments: image

Platform Information

Komodo IDE, version 12.0.1, build 91869, platform win32-x86. Built on Mon Feb 10 18:14:23 2020.

jbullock35 avatar Apr 02 '20 13:04 jbullock35

Taking a look. If it's as easy as adding # to the MySQL language file then i'll push a fix otherwise it'll be a UDL change and I can't take that on right now.

th3coop avatar Apr 02 '20 18:04 th3coop

@jbullock35, Unfortunately it wasn't as easy a as I'd hoped it would be. I'm not going to be able to get to fixing this properly for now.

th3coop avatar Apr 03 '20 17:04 th3coop

@th3coop, I understand -- thank you for taking a look.

jbullock35 avatar Apr 03 '20 20:04 jbullock35