-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Not really an issue, more a few improvements for colorization ;-)
Currently, I'm using the onigasm with vsdarkplus theme for pgplsql.
This is an example how my code looks like:
When I paste this in your playground; I get the following:
A few things caught my mind:
- The "replace" part of "create or replace" is recognized as function rather than statement.
- The word "begin" at the start of the function body should be colored as control flow
- The column- and table names have no special meaning, so the default colorizer keeps them uncoloured. In your version, I do not see a difference. I would imagine that I can feed a data model to the language server in order to perform auto complete and may be to colorize them in a special color when the table name is recognized (as Dbeaver now does, see below)
- I changed one rule in the original colorizer: I colorize words that start with an underscore with an alternate color. That's just a personal taste because I always declare variables with underscores to prevent ambiguity. You can see the effect in the "select ... into..." part.
dbeaver example:
Metadata
Metadata
Assignees
Labels
No labels


