Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

SQL comments & special character keywords problem #504

Open
jonghshin opened this issue Feb 18, 2021 · 0 comments
Open

SQL comments & special character keywords problem #504

jonghshin opened this issue Feb 18, 2021 · 0 comments

Comments

@jonghshin
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant