Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function calls with color like standard sql highlighter #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dgehlich
Copy link

@dgehlich dgehlich commented Mar 3, 2020

Hi,

and my last but most important suggestion: show function calls in:

  • creations
  • statements
  • functions
CREATE TABLE some_table (
  col_1 INTEGER DEFAULT scma.some_function(col1)
);

SELECT scma.some_function(scma.other_function());

      
CREATE OR REPLACE FUNCTION super_function() RETURNS VOID AS $$
  DECLARE var INTEGER;
  BEGIN
    var := scma.best_function();
    PERFORM scma.some_function(scma.other_function(var));
END $$ LANGUAGE plpgsql;

@dgehlich
Copy link
Author

dgehlich commented Mar 3, 2020

grafik

@dgehlich
Copy link
Author

dgehlich commented Mar 3, 2020

found flaws:

INSERT INTO scma.some_table (col_1, col_2) ...;

CREATE INDEX some_table_col1 ON scma.some_table(col_1, col_2);

will be coloured, too.

grafik

@dgehlich
Copy link
Author

dgehlich commented Mar 4, 2020

flaws could be standard: see new pull request #6

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

Successfully merging this pull request may close these issues.

1 participant