jacobslusser / ScintillaNET

A Windows Forms control, wrapper, and bindings for the Scintilla text editor.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQL comments & special character keywords problem

jonghshin opened this issue · comments

Hello, I'm having issues with SQL queries.
I'm using the MSSQL recipe .

The first issue is that ScintillaNET does not understand the block comments if a star or exclamation mark is followed by the block comment start which is /*.
Here are the examples.
image
/** ... */ and /*! ... */ should be valid comments.
How can I make it so that it understands /** ... */ and /*! ... */ as comments?

The second issue is that ScintillaNET does not understand the special character keywords.
For example, the MSSQL recipe registers "( ) *" as User1 keywords along with other keywords like "all" and "and".

// User1 = 4 scintilla.SetKeywords(4, @"all and any between cross exists in inner is join left like not null or outer pivot right some unpivot ( ) * ");

ScintillaNET highlights the words "all" and "and", but it does not highlights "(", ")" or "*".
As you can see in the below example, ScintillaNET highlights "and" and "or" in gray, but it does not highlight "*", "(" and ")".

image

How can I register special characters as keywords?
Thank you in advance.