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

postgresql highliter - annonymous code block #4790

Closed
michalk-k opened this issue Mar 16, 2016 · 1 comment
Closed

postgresql highliter - annonymous code block #4790

michalk-k opened this issue Mar 16, 2016 · 1 comment

Comments

@michalk-k
Copy link

Hello
I found, postgresql highlighter seems to be lost when a source code contains anonymous code block.
Such block can be defined by following constructs

DO $$
BEGIN
    -- some code
END
$$ LANGUAGE plpgsql;

or

DO LANGUAGE plpgsql $$
BEGIN

END $$;

Other languages than plpgsql (like python etc) doen't require BEGIN-END commands.

In current version of highlighter any code existing after anonymous code block is treated as a comment (at least judging by colours). On the other side, SQLServer highlighter behaves properly.

Tested at: https://ace.c9.io/build/kitchen-sink.html

With regards

@andrewnester
Copy link
Contributor

Released in 1.9 version

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

No branches or pull requests

2 participants