monaco-editor icon indicating copy to clipboard operation
monaco-editor copied to clipboard

JSONata language support

Open Steve-Mcl opened this issue 4 years ago • 2 comments

Hi, I would love to replace ACE Editor in the node-red project with monaco (and mostly I have succeeded) but there is one last hurdle before I can raise a PR for it - lack of JSONata support.

I have found this and this but I have no idea how to implement this.

If adding JSONata is a "no-go" then perhaps instructions on how I might achieve this in a fork OR worst case, how to do very basic keyword colouring & simple syntax checks (closed brackets / quotes, comments etc)

Steve-Mcl avatar Oct 25 '20 19:10 Steve-Mcl

how to do very basic keyword colouring & simple syntax checks (closed brackets / quotes, comments etc)

https://microsoft.github.io/monaco-editor/monarch.html

This document describes how to create a syntax highlighter using the Monarch library. This library allows you to specify an efficient syntax highlighter, using a declarative lexical specification (written as a JSON value). The specification is expressive enough to specify sophisticated highlighters with complex state transitions, dynamic brace matching, auto-completion, other language embeddings, etc. as shown in the 'advanced' topic sections of this document. On a first read, it is safe to skip any section or paragraph marked as (Advanced) since many of the advanced features are rarely used in most language definitions. – Daan Leijen.

I'm interested in JSONata as well, so let me know how it goes.

Prinzhorn avatar Oct 30 '20 09:10 Prinzhorn

Did we make any progress here? Interested in the JSONata support for Monaco Editor

RajuSuranagi avatar Sep 21 '22 10:09 RajuSuranagi

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding, and happy coding!

hediet avatar Mar 13 '23 11:03 hediet