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

Syntax highlighting for Mango queries #1403

Merged

Conversation

Antonio-Maranhao
Copy link
Contributor

Overview

Adds a custom mode for the Ace Editor that highlights Mango Query operators.
The custom mode also adds warning annotations to the editor's gutter to indicate certain operators can have an adverse impact on query performance.

Before
image

After
image

Example of warning annotation:
image

Testing recommendations

Type a Mango Query in the editor and confirm operators (e.g. $eq) are highlighted on a different color.

GitHub issue number

n/a

Related Pull Requests

n/a

Checklist

  • Code is written and works correctly;
  • Changes are covered by tests;
  • Documentation reflects the changes;
  • Update rebar.config.script with the correct tag once a new Fauxton release is made

@Antonio-Maranhao Antonio-Maranhao merged commit f6e0f89 into apache:main Jul 18, 2023
3 checks passed
@Antonio-Maranhao Antonio-Maranhao deleted the mango-query-syntax-highlight branch July 18, 2023 13:50
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.

None yet

2 participants