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

Align Monaco language with official language ref #156

Merged
merged 1 commit into from
Jun 17, 2022
Merged

Conversation

sunker
Copy link
Collaborator

@sunker sunker commented Jun 17, 2022

Updating keywords and functions according to official language ref. Probably not 100% aligned, but should be much better than before.

Fixes #155
Part of #108

@sunker sunker requested a review from a team as a code owner June 17, 2022 07:43
@sunker sunker requested review from sarahzinger and yaelleC and removed request for a team June 17, 2022 07:43
@github-actions
Copy link

Code coverage report for PR #156

Go TypeScript
main 45.9% 87.73%
PR 45.9% 87.73%
difference 0% 0%

@@ -176,478 +182,301 @@ export const keywords = [
];

export const builtinFunctions = [
'current_schema',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to migrate old queries that are using these lowercase functions?

(I have never touched this language file so not sure how it's used 😉 )

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment, the language is only used for providing syntax highlighting. Functions are purple in the code editor for example. Non tokenized functions and keywords can still be used - just not with syntax highlighting.

Copy link
Contributor

@yaelleC yaelleC Jun 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So with this change, a query that used to be highlighted might no longer be (for the functions especially), but there will be no change in terms of running/results of the query correct?
Sounds like a fair tradeoff for a better alignment 👍

@sunker sunker merged commit 514e106 into main Jun 17, 2022
@sunker sunker deleted the language-updates branch June 17, 2022 12:17
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.

Make sure Monaco redshift language is up to date with language ref
2 participants