Add GROQ highlighting model#5940
Conversation
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
0782b0e to
09e8558
Compare
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
|
I saw there was a lint issue - fixed and force-pushed, sorry about that - should have caught that earlier. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5940 +/- ##
==========================================
- Coverage 93.72% 93.72% -0.01%
==========================================
Files 634 636 +2
Lines 137322 137470 +148
Branches 14469 14464 -5
==========================================
+ Hits 128708 128844 +136
- Misses 8614 8626 +12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks, merged. |
|
Thank you! |
Issue #, if available:
N/A
Description of changes:
Adds a new syntax highlighting mode for GROQ (Graph-Relational Object Queries), a query language used by the Sanity content platform, amongst others.
It is getting quite popular - it's a little hard to see the full extent of the ecosystem - but a search for the Sanity clients'
.fetch()is a fairly good indicator.The mode includes highlighting for:
//)in,match,asc,desc)count,select,coalesce,defined,order, etc.)string::split,pt::text, etc.)$name)@,^)->), spread (...), range (..), pipe (|), arrow (=>)Pull Request Checklist:
ace.d.ts) and its references:Open kitchen-sink @ 09e8558aae17cd8c21326df71f90796c85a52bb6